- Joined
- Nov 22, 2006
- Messages
- 1,260
Lingonberryjam said:I cant sort this out still... does these locations leak:
.
Does locations Leak
Events
Someone answers this
Conditions
Actions
Set Location[4] = (Center of MerchantSpot <gen>)
Cinematic - Ping minimap for (All players) at Location[4] for 1.00 seconds, using a Flashy ping of color (30.00%, 100.00%, 100.00%)
Unit - Create 1 Elementar Master for Neutral Passive at Location[4] facing Default building facing degrees
Custom script: call RemoveLocation( udg_Location[4] )
Or do i have to use the custom script removal twice in the trigger?
I don't know why do people who are answering to these kind of threads always ignore the old question and starts answering the new one, but nvm. This won't leak, don't worry. It's important that you understand why: When you store a location in a variable, and you use that variable later, you're always using the same location.
And Lingonberryjam, please pay attention:
Paskovich said:I don't know how forces leak. All i know is (All players) do NOT leak, and if you destroy it, sthg weird (crash or fatal error?) will happen