Difference between revisions of "Scripting tutorial lever"

19 bytes added ,  09:09, 2 April 2014
m
imported>Fg109
imported>Karea
 
Line 10: Line 10:
===Lever Design===
===Lever Design===


All levers in the game are basically the same.  Let's take a look at the Dwemer Lever 01.
All levers in the game are basically the same.  Let's take a look at the Dwemer Lever 01 (DweLever01).


[[Image:DwemerLever01.jpg]]
[[Image:DwemerLever01.jpg]]


In the render window, it's shown with the lever in a central position pointing straight up.  However, once it's loaded in the game, the default position is actually pulled down, all the way to the right.  Levers have animations, and these animations can be called by using the scripting functions [[PlayAnimation_-_ObjectReference|PlayAnimation]] or [[PlayAnimationAndWait_-_ObjectReference|PlayAnimation]].  From what I can tell, levers have six animations:
In the render window, it's shown with the lever in a central position pointing straight up.  However, once it's loaded in the game, the default position is actually pulled down, all the way to the right.  Levers have animations, and these animations can be called by using the scripting functions [[PlayAnimation_-_ObjectReference|PlayAnimation]] or [[PlayAnimationAndWait_-_ObjectReference|PlayAnimationAndWait]].  From what I can tell, levers have six animations:


*PushDown
*PushDown
Line 31: Line 31:


Now that we know how the animation for a lever works, we can begin writing a script for it.
Now that we know how the animation for a lever works, we can begin writing a script for it.


===Starting Your Script===
===Starting Your Script===
Anonymous user