Swap not working?

MiddleHanded

New Member
Reaction score
1
My swap ability trigger only half works, The caster moves to the position of the target, but the target stays put.

could anyone point out the problem?

Trigger:
  • Swappe
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to HaXX
    • Actions
      • Set SwapPosCaster = (Position of (Casting unit))
      • Unit - Move (Casting unit) instantly to (Position of (Target unit of ability being cast)), facing SwapPosCaster
      • Unit - Move (Target unit of ability being cast) instantly to SwapPosCaster, facing (Position of (Casting unit))


(The skill is based off Hurl Boulder)
 

Wratox1

Member
Reaction score
22
it shouldnt be a problem, but you can try changing casting unit to triggering unit.
 

canons200

New Member
Reaction score
50
try to set target unit of ability being cast to variable and test again, it should work
 

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
I made the spell, and this should be the best.

Trigger:
  • Swap
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to <Your Spell>
    • Actions
      • Set Point_X[0] = (Position of (Triggering unit))
      • Set Point_X[1] = (Position of (Target unit of ability being cast))
      • Unit - Turn collision for (Triggering unit) Off
      • Unit - Turn collision for (Target unit of ability being cast) Off
      • Unit - Move (Target unit of ability being cast) instantly to Point_X[0]
      • Unit - Move (Triggering unit) instantly to Point_X[1]
      • Unit - Turn collision for (Triggering unit) On
      • Unit - Turn collision for (Target unit of ability being cast) On
      • Custom script: call RemoveLocation(udg_Point_X[0])
      • Custom script: call RemoveLocation(udg_Point_X[1])
      • Custom script: set udg_Point_X[0] = null
      • Custom script: set udg_Point_X[1] = null


Works fine
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top