Frictional Games Forum (read-only)
[SCRIPT] Can i make a lift/elevator go up and down? - 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: [SCRIPT] Can i make a lift/elevator go up and down? (/thread-13706.html)



Can i make a lift/elevator go up and down? - oscar1007 - 03-02-2012

Hello!

If possible im planing to have a lift in my upcoming custom story.
I want to use this entity: Entities/Gameplay/bridge_metal_vert

Anyone know how to script it go up and down? It's suppose to go down when you use a key on another entity.


Thank you everyone!


RE: Can i make a lift/elevator go up and down? - flamez3 - 03-02-2012

SetMoveObjectState(string& asName, float afState);


Moves an object to a certain state.
asName - internal name
afState - state of the object, 0 = closed, 1 = open, values inbetween are valid too!


You'll probably have to animate it.



RE: Can i make a lift/elevator go up and down? - Acies - 03-02-2012

Animated meshes does not collide with the player :/





RE: Can i make a lift/elevator go up and down? - flamez3 - 03-02-2012

(03-02-2012, 03:52 PM)Acies Wrote: Animated meshes does not collide with the player :/
Well that pooped on my idea.





RE: Can i make a lift/elevator go up and down? - jessehmusic - 03-02-2012

(03-02-2012, 02:26 PM)oscar1007 Wrote: Hello!

If possible im planing to have a lift in my upcoming custom story.
I want to use this entity: Entities/Gameplay/bridge_metal_vert

Anyone know how to script it go up and down? It's suppose to go down when you use a key on another entity.


Thank you everyone!
Hmm....hope we get good answers here Smile