| 10-09-2006, 12:14 PM | #1 |
I stored an point of a unit in a variable with the following. Trigger: Set SB_CastPoint = (Position of SB_CastUnit)I want to use that point, to let the unit go back to at the end of a session, thats possible but I used a trigger like this. Trigger: ![]() Set SB_Temppoint = SB_CastPoint![]() Set SB_Temppoint2 = (SB_Temppoint offset by SB_AOE[SB_Level] towards (Random real number between 0.00 and 359.00) degrees)![]() Unit - Move SB_CastUnit instantly to (SB_CastPoint offset by SB_AOE[SB_Level] towards (Random real number between 0.00 and 359.00) degrees)![]() Custom script: call RemoveLocation (udg_SB_Temppoint)![]() Custom script: call RemoveLocation (udg_SB_Temppoint2)What I noticed is that it removes my point in my other trigger as well, now can I place a unit without a model for instance on that unit and go back to the unit in the end, but aren't there other ways to keep the variable presserved. |
| 10-09-2006, 01:50 PM | #2 |
you can simply not remove Tempoint and later Remove SB_CastPoint , (both variables point to the same "point" , variables of handle types behave like pointers) |
