Difference between revisions of "Scripting tutorial lever"

3 bytes removed ,  20:36, 15 March 2012
m
imported>Fg109
imported>Fg109
Line 111: Line 111:


<source lang="Papyrus">
<source lang="Papyrus">
elseif (LeverPosition == -1)
elseif (LeverPosition == -1)
PlayAnimation("PushUp")
PlayAnimation("PushUp")
endif</source>
endif</source>


check to see if the lever is in position -1 (pushed to the left) and returns it to the middle position if so.  The OpenDoor is calling a function that we're going to put into the script further down.
check to see if the lever is in position -1 (pushed to the left) and returns it to the middle position if so.  The OpenDoor is calling a function that we're going to put into the script further down.
Anonymous user