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)
- If - Conditions
- 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])
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
I was wondering if this is the correct way of removing a loc on a point variable with another variable as its array.