- Joined
- Mar 21, 2008
- Messages
- 377
why does this leak (or so i think it leaks)? when the spell is casted a couple of times my fps drops down to like 5...
ok, so apparently the trigger wasnt lagging the game. i disabled the trigger and cast the spell, and my fps began to drop anyway...
-
lacerate
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Lacerate (Sword)
-
-

Actions
-


Set temp_loc[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
-


Set temp_loc2[(Player number of (Owner of (Triggering unit)))] = (temp_loc[(Player number of (Owner of (Triggering unit)))] offset by 150.00 towards (Facing of (Triggering unit)) degrees)
-


Set temp_unitgroup[(Player number of (Owner of (Triggering unit)))] = (Units within 130.00 of temp_loc2[(Player number of (Owner of (Triggering unit)))])
-


Unit Group - Pick every unit in temp_unitgroup[(Player number of (Owner of (Triggering unit)))] and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to False
-
-





Then - Actions
-






Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Human\Feedback\SpellBreakerAttack.mdl
-






Special Effect - Destroy (Last created special effect)
-






Unit - Cause (Triggering unit) to damage (Picked unit), dealing 100.00 damage of attack type Normal and damage type Normal
-
-





Else - Actions
-
-
-
-


Custom script: call RemoveLocation(udg_temp_loc[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
-


Custom script: call RemoveLocation(udg_temp_loc2[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
-


Custom script: call DestroyGroup(udg_temp_unitgroup[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
-
-
ok, so apparently the trigger wasnt lagging the game. i disabled the trigger and cast the spell, and my fps began to drop anyway...
Last edited:




