- Joined
- Aug 15, 2008
- Messages
- 720
I made this very simple spell, but when I cast it, fps goes down and after some 5 casts fps is like 7-15. I suspect it was leak, but I can't really find it.
-
Ability Homing Missiles
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to ABILITY[2]
-
-

Actions
-


Set Unit_Temp = (Triggering unit)
-


Set Point_Temp = (Position of Unit_Temp)
-


-------- ------------------------------ --------
-


Set UGroup_Temp = (Units within 8000.00 of Point_Temp)
-


Unit Group - Pick every unit in UGroup_Temp and do (Actions)
-



Loop - Actions
-




Set Point_Temp2 = (Position of (Picked unit))
-




Unit - Create 1 Dummy - General for (Owner of Unit_Temp) at Point_Temp facing Default building facing degrees
-




Unit - Add Dummy - Homing Rocket to (Last created unit)
-




Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
-




Unit - Order (Last created unit) to Neutral - Firebolt (Picked unit)
-




Custom script: call RemoveLocation(udg_Point_Temp2)
-
-
-


-------- ------------------------------ --------
-


Custom script: call DestroyGroup(udg_UGroup_Temp)
-


Custom script: call RemoveLocation(udg_Point_Temp)
-


-------- ------------------------------ --------
-


Unit - Remove ABILITY[2] from Unit_Control[(Player number of (Owner of Unit_Temp))]
-


Unit - Add Ability - Slot to Unit_Control[(Player number of (Owner of Unit_Temp))]
-


-------- ------------------------------ --------
-
-