- Joined
- Mar 26, 2009
- Messages
- 301
What I am trying to acomplish is making a MUI Charge (slide) spell that drags nearby units with caster as well. I am too tired of working that right now, I am blanking stupidly at at the screen =) Triggers are:
Caster moves alright, but without dragging anything with itself =)
-
Charge
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Charge
-
-

Actions
-


Set Charge_Caster[Charge_Current_Index] = (Triggering unit)
-


Set Charge_Current_Index = (Charge_Current_Index + 1)
-


If (Charge_Current_Index Equal to 30) then do (Set Charge_Current_Index = 0) else do (Do nothing)
-


Unit - Turn collision for Charge_Caster[Charge_Current_Index] Off
-
-
-
Charge Movement
-

Events
-


Time - Every 0.02 seconds of game time
-
-

Conditions
-

Actions
-


For each (Integer A) from 0 to 30, do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Charge_Caster[(Integer A)] has buff Charge ) Not equal to True
-
-





Then - Actions
-






Unit - Turn collision for Charge_Caster[(Integer A)] On
-






Set Charge_Caster[(Integer A)] = No unit
-
-





Else - Actions
-






Unit - Turn collision for Charge_Caster[(Integer A)] Off
-






Set LOC_TEMP_Charge_Caster = (Position of Charge_Caster[(Integer A)])
-






Unit - Move Charge_Caster[(Integer A)] instantly to (LOC_TEMP_Charge_Caster offset by 15.00 towards (Facing of Charge_Caster[(Integer A)]) degrees)
-






Special Effect - Create a special effect attached to the origin of Charge_Caster[(Integer A)] using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
-






Special Effect - Destroy (Last created special effect)
-






Custom script: call RemoveLocation (udg_LOC_TEMP_Charge_Caster)
-






Set Charge_Target_Group = (Units within 150.00 of LOC_TEMP_Charge_Caster matching ((((Matching unit) is A structure) Not equal to True) and (((Unit-type of (Matching unit)) Not equal to Turret) and (((Unit-type of (Matching unit)) Not equal to Heavy Turret) or ((Unit-type of (Matching
-






Set INT_A_Conversion = (Integer A)
-






Set LOC_TEMP_Charge_Caster = (Position of Charge_Caster[INT_A_Conversion])
-






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







Loop - Actions
-








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








Unit - Cause Charge_Caster[INT_A_Conversion] to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal
-








Unit - Move (Picked unit) instantly to (LOC_TEMP_Charge_Picked offset by 15.00 towards (Angle from LOC_TEMP_Charge_Caster to LOC_TEMP_Charge_Picked) degrees)
-








Special Effect - Create a special effect attached to the origin of (Picked unit) using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
-








Special Effect - Destroy (Last created special effect)
-








Custom script: call RemoveLocation (udg_LOC_TEMP_Charge_Picked)
-
-
-






Custom script: call RemoveLocation (udg_LOC_TEMP_Charge_Caster)
-






Custom script: call DestroyGroup (udg_Charge_Target_Group)
-
-
-
-
-
-






