Remove point array using customscript

Wratox1

Member
Reaction score
22
hello,
i have this trigger:
Trigger:
  • Camera
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Set (Picked player)'s camera Distance to target to 1000.00 over 0.00 seconds
          • Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) is A Hero) Equal to True
                • Then - Actions
                  • Set hero_point[(Player number of (Picked player))] = (Position of (Picked unit))
                  • Camera - Set a spacebar-point for (Picked player) at hero_point[(Player number of (Picked player))]
                  • Custom script: call RemoveLocation(udg_hero_point[])
                • Else - Actions


but im not sure how to remove the right array with this line:

Trigger:
  • Custom script: call RemoveLocation(udg_hero_point[])

what should i put inside the bracket([]) to make it remove the arraynumber of the picked player?
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
It would be [ljass][GetPlayerId(GetEnumPlayer()) + 1][/ljass]...or, you could use an integer variable (eg. one named TempInteger) and set it equal to the value you need, and then just use [udg_TempInteger].
 
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