Correct removal of location?

Murre

New Member
Reaction score
14
Trigger:
  • Teleport
    • Events
      • Unit - A unit enters Teleport Entrance <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • CustomValue Greater than or equal to 100
        • Then - Actions
          • Set CustomValue = 1
        • Else - Actions
          • Set CustomValue = (CustomValue + 1)
      • Set Teleport_Exit[CustomValue] = (Random point in Teleport Exit <gen>)
      • Unit - Move (Triggering unit) instantly to Teleport_Exit[CustomValue]
      • Custom script: call RemoveLocation (udg_Teleport_Exit[CustomValue])


I was wondering if this is the correct way of removing a loc on a point variable with another variable as its array.
 

luorax

Invasion in Duskwood
Reaction score
67
Is "CustomValue" a global variable, right? Then this is the correct:

Trigger:
  • Custom script: call RemoveLocation (udg_Teleport_Exit[udg_CustomValue])


Btw removing loc on a point variable is something like this

For example:

Trigger:
  • call RemoveLocation( CV[1])
 

Murre

New Member
Reaction score
14
Is "CustomValue" a global variable, right? Then this is the correct:

Trigger:
  • Custom script: call RemoveLocation (udg_Teleport_Exit[udg_CustomValue])


Btw removing loc on a point variable is something like this

For example:

Trigger:
  • call RemoveLocation( CV[1])
Alright, thanks.
 
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