Advertisement
Daedroth

Untitled

Jan 7th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. begin Ship_sct ; глобальный скрипт
  2.  
  3. ; short Var - глобальная
  4. float Timer
  5. short Once
  6.  
  7. if ( Pirate->GetHealth <= 0 )
  8. if ( Var == 0 )
  9. set Timer to Timer + GetSecondsPassed
  10. if ( Timer >= 2 )
  11. Second_Door_First_Location->enable ; *
  12. First_Door_First_Location->disable
  13. Door_Second_location->disable
  14. ship_Second_Location->disable
  15. Stone->enable
  16. Ship_Third_Location->enable
  17. Door_Third_Location->enable
  18. Set Var to 1
  19. set Timer to 0
  20. endif
  21. elseif ( Var == 1 )
  22. if ( Once == 0 )
  23. playsound SOUNDID
  24. if ( GetSoundPlaying SOUNDId == 0 )
  25. set Once to 1
  26. endif
  27. endif
  28. endif
  29.  
  30. END
  31.  
  32. *На объекты, которые енаблятся через данный скрипт, надо заранее наложить дисабл, а т.е. локальный скрипт типа вот этого:
  33.  
  34. Begin Disable Script
  35.  
  36. if ( Var < 1 )
  37. if ( GetDisabled == 0 )
  38. disable
  39. endif
  40. endif
  41.  
  42. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement