negader

turn off and on trigger

Feb 14th, 2016
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. -- trigger: * is in perfect health.
  2. -- send to script
  3. -- Group: study
  4.  
  5. require "wait"
  6. wait.make (function() -- start of coroutine
  7.  
  8. EnableTrigger('study', false)
  9. DoAfterSpecial (1, 'EnableTriggerGroup ("study", 0)', sendto.script)
  10. Note ("%1")
  11.  
  12. wait.time (5)
  13.  
  14. DoAfterSpecial (1, 'EnableTriggerGroup ("study", 1)', sendto.script)
  15. end) -- of Coroutine
Advertisement
Add Comment
Please, Sign In to add comment