Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin TR_act_m3_770_lant_script
- float timer
- short sound
- ; global short TR_m3_OE_MainGate
- if ( MenuMode )
- return
- endif
- if ( TR_m3_OE_MainGMove )
- if ( sound )
- else
- set sound to 1
- PlayLoopSound3D "T_SndObj_ChainMechanism"
- endif
- elseif ( sound )
- set sound to 0
- StopSound "T_SndObj_ChainMechanism"
- endif
- set timer to ( timer + GetSecondsPassed )
- ; rotate up
- if ( timer < 1 )
- Rotate x 2
- return
- ; rotate down
- elseif ( timer < 3 )
- Rotate x -2
- return
- ; up again
- elseif ( timer < 4 )
- Rotate x 2
- return
- endif
- set timer to 0
- SetAtStart
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement