San-D
New Member
- Reaction score
- 15
I know that adding special effects to position of unit or at point with coordinates leaks and I know how to avoid it but does attaching a special effect leak like in :
And also, if u prperly use the leak prevent method on a frequent periodic event like in:
It shouldnt leak if its just one time, but it happens around 900 times in 9 seconds, does it leak, and if so how to prevent it?
Code:
Untitled Trigger 001
Events
Map initialization
Conditions
Actions
Special Effect - Create a special effect attached to the overhead of Footman 0000 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
Special Effect - Destroy (Last created special effect)
And also, if u prperly use the leak prevent method on a frequent periodic event like in:
Code:
Whirpool Spin
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set Temp_Point = (Position of Caster)
Set Point = (Position of Target)
Unit - Move Target instantly to (Temp_Point offset by Distance towards Angle degrees)
Unit - Create 1 Dummy for Player 1 (Red) at Point facing Default building facing degrees
Unit - Add a 0.01 second Generic expiration timer to (Last created unit)
Set Angle = (Angle + 1.00)
Set Distance = (Distance - 1.00)
Custom Script: call RemoveLocation(udg_Temp_Point)
Custom Script: call RemoveLocation(udg_Point)