Aller au contenu

Photo

How do I animate a lever?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I searched the old boards and found the answer here:

http://nwn2forums.bi...forum=114.&sp=0

Thought I would import it here since it is something that I imagine many modders would want to do.

To sum it up, make the placeable execute the followin function:

ActionPlayAnimation( ANIMATION_PLACEABLE_ACTIVATE);

#2
_Knightmare_

_Knightmare_
  • Members
  • 643 messages
Also works with the levers:



ActionPlayAnimation(ANIMATION_PLACEABLE_OPEN)



and



ActionPlayAnimation(ANIMATION_PLACEABLE_CLOSE)

#3
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
After fiddling around, I decided that the following commands work well together



ActionPlayAnimation( ANIMATION_PLACEABLE_ACTIVATE);

DelayCommand(0.5,ActionPlayAnimation( ANIMATION_PLACEABLE_DEACTIVATE));



This gives the impression of the lever recoiling after being activated.