Push problem

fokyip

Member!
Joined
Nov 23, 2005
Messages
17
Reaction score
0
Erupt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Erupt (Slayer)
Actions
Set EruptPoint = (Units within 300.00 of (Position of (Attacked unit)))
Unit Group - Pick every unit in EruptPoint and do (Unit - Move (Random unit from EruptPoint) instantly to ((Position of (Casting unit)) offset by 300.00 towards (Angle from (Position of (Casting unit)) to (Position of (Target unit of ability being cast))) degrees), facing Default building facing degrees)

im trying to make a unit that pushes surrounding enemy units from casting unit except this trigger work partial but the main problem is that it moves casting unit from point how do i make it so it doesn't?
 

Dream_Walker

BattleForums Senior Member
Joined
Feb 20, 2005
Messages
1,924
Reaction score
0
Location
Arcanum
(Unit - Move (Random unit from EruptPoint) instantly to ((Position of (Casting unit)) offset by 300.00 towards (Angle from (Position of (Casting unit))
thats why?
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
The last one should be:

Unit Group - Pick every unit in EruptPoint and do (Unit - Move (Picked Unit) instantly to ((Position of (Casting unit)) offset by 300.00 towards (Angle from (Position of (Casting unit)) to (Position of (Picked Unit))) degrees), facing (Angle from (Position of (Casting unit)) to (Position of (Picked Unit))) degrees))

Where you change the bolds. The last part is just a little cosmetic change where the units will face away from the caster upon being moved. If you want them to face the other way, simply add 180° to the angle.*
 

NewPosts

New threads

Top