- Joined
- Oct 10, 2009
- Messages
- 439
Here it is; Damage works and everything. BUT the unit is not being moved to the point.
-
Slash
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Slash
-
Actions
- Set Point[0] = (Position of (Triggering unit))
- Set Point[1] = (Target point of ability being cast)
- Set Point[2] = (Point[0] offset by 400.00 towards (Facing of (Triggering unit)) degrees)
- Set Unit = (Triggering unit)
- Custom script: call SetUnitY(GetEnumUnit(), GetLocationY(udg_Point[2]))
- Custom script: call SetUnitX(GetEnumUnit(), GetLocationX(udg_Point[2]))
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
- Set Point[3] = (Point[0] offset by ((Real((Integer A))) x 100.00) towards (Angle from Point[0] to Point[1]) degrees)
- Set Group = (Units within 100.00 of Point[3] matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and ((((Matching unit) is dead) Equal to False) and ((Level of Invulnerable (Neutral) for (Matching unit)) Equal to 0))))
-
Unit Group - Pick every unit in Group and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to UG_BDGroup
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Point[3])
- Custom script: call DestroyGroup(udg_Group)
-
Loop - Actions
-
Unit Group - Pick every unit in UG_BDGroup and do (Actions)
-
Loop - Actions
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing (150.00 x (Real((Level of (Ability being cast) for (Triggering unit))))) damage of attack type Spells and damage type Normal
- Set Point[3] = (Position of (Picked unit))
- Special Effect - Create a special effect at Point[3] using Objects\Spawnmodels\Orc\Orcblood\OrcBloodHeroFarSeer.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Point[3])
- Unit Group - Remove (Picked unit) from UG_BDGroup
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Point[0])
- Custom script: call RemoveLocation(udg_Point[1])
- Custom script: call RemoveLocation(udg_Point[2])
-
Events