1. void a() {
  2. fixed distance; // local variable *distance* of type *real*
  3. // .... your existing code
  4. while (1) { // Repeat forever actiion
  5. Wait(0.0625, c_timeGame); // << General - Wait Tick Period Game Time seconds
  6. distance = // Set variable *distance*
  7. DistanceBetweenPoints( // Distance Between Points
  8. UnitGetPosition( // Position of unit
  9. EventUnit() // Triggering Unit
  10. ),
  11. UnitGetPosition( // Position of unit
  12. secretBane // saved variable of type *unit* - *secretbane*
  13. )
  14. )
  15. ;
  16. if (distance <= 1.0) { // Action if; condition - obvious
  17. // sfi Reward Player Unlock Reward((Owner of (Picked unit)), Glaze - Flash) Trigger - Stop all instances of (Current trigger) Trigger - Turn (Current trigger) Off General - Break
  18. }
  19. }
  20. }

goto line:
Compare with:
text copy window edit this code post new code