Custom script (remove location) question

pongpong

Member
Reaction score
9
Lets say that a group variable has 20 people,

Code:
Unit Group - Pick every unit in Group and do (Actions)
    Loop - Actions
        Set UNIT = (Picked unit)
        Set UNITPOS = (Position of UNIT)
Custom script:   call RemoveLocation (udg_UNITPOS)

Code:
Unit Group - Pick every unit in Group and do (Actions)
    Loop - Actions
        Set UNIT = (Picked unit)
        Set UNITPOS = (Position of UNIT)
        Custom script:   call RemoveLocation (udg_UNITPOS)

in this 2 trigger is there any difference if I put the Remove location script outside the unit group action??
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
It should be inside. If there's 20 units inside the loop, it creates the point 20 times. But it does't matter, once you destroyed it destroys all. So it doesn't matter.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top