Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin Ship_sct ; глобальный скрипт
- ; short Var - глобальная
- float Timer
- short Once
- if ( Pirate->GetHealth <= 0 )
- if ( Var == 0 )
- set Timer to Timer + GetSecondsPassed
- if ( Timer >= 2 )
- Second_Door_First_Location->enable ; *
- First_Door_First_Location->disable
- Door_Second_location->disable
- ship_Second_Location->disable
- Stone->enable
- Ship_Third_Location->enable
- Door_Third_Location->enable
- Set Var to 1
- set Timer to 0
- endif
- elseif ( Var == 1 )
- if ( Once == 0 )
- playsound SOUNDID
- if ( GetSoundPlaying SOUNDId == 0 )
- set Once to 1
- endif
- endif
- endif
- END
- *На объекты, которые енаблятся через данный скрипт, надо заранее наложить дисабл, а т.е. локальный скрипт типа вот этого:
- Begin Disable Script
- if ( Var < 1 )
- if ( GetDisabled == 0 )
- disable
- endif
- endif
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement