- Joined
- Dec 13, 2018
- Messages
- 2,315
Will running a trigger before clearing a leak cause a leak if I use the same location variable?
Example:
According to logic TempLoc should be overwritten in the trigger that is being run, thus causing a leak. I just want to confirm if that is the case.
Example:
-
Initiate leak
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Set TempLoc = (Position of YourUnit)
- Trigger - Run Run Leak <gen> (ignoring conditions)
- Custom script: call RemoveLocation (udg_TempLoc)
-
Events
-
Leak
- Events
- Conditions
-
Actions
- Set TempLoc = (Position of YourUnit)
- Custom script: call RemoveLocation (udg_TempLoc)
According to logic TempLoc should be overwritten in the trigger that is being run, thus causing a leak. I just want to confirm if that is the case.