Difference between revisions of "Scripting tutorial lever"
m
→Functions
imported>Fg109 |
imported>Fg109 m (→Functions) |
||
Line 111: | Line 111: | ||
<source lang="Papyrus"> | <source lang="Papyrus"> | ||
elseif (LeverPosition == -1) | |||
PlayAnimation("PushUp") | |||
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. |