Frictional Games Forum (read-only)
lever move by itself? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: lever move by itself? (/thread-17217.html)



lever move by itself? - HoyChampoy - 07-23-2012

Hey Guys,

I was wondering if it was possible to get a lever to move by itself, like actually seeing a lever get pull downed without you doing it yourself?


RE: lever move by itself? - FlawlessHappiness - 07-23-2012

Maybe AddPropImpulse/Force can to it?


RE: lever move by itself? - HoyChampoy - 07-23-2012

(07-23-2012, 07:19 PM)beecake Wrote: Maybe AddPropImpulse/Force can to it?
It works, but only sometimes. On the times it doesn't do it, it looks like the lever just twitches. I used addpropforce and set the y cordinates to -32000, so it goes down. How do i get it so the lever comes down everytime?


RE: lever move by itself? - FlawlessHappiness - 07-23-2012

I dont know... How about using prop impulse... I guess those high numbers are pretty hard to go with...


RE: lever move by itself? - Your Computer - 07-24-2012

Set the stuck state for the lever.


RE: lever move by itself? - PixelHurricane - 07-24-2012

What do you mean by "so the lever comes down everytime?"
I assume you mean that you want it so it comes down evertime you enter the room.
if so use AddEntityCollideCallback and set the int variable at the end to 0