Moving a Dummy with triggers.(abit of a noob question)

xigon

New Member
Reaction score
1
Well, how do we move a dummy with triggers.
This is it:

ParasiteLance
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Parasite Lance
Actions
Unit - Create 1 Parasite (DumyCaster) for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees

now how do i make it move 400 units away with the trajectory being a strait line starting from the caster and his facing angle.

I know this a noob question but hey dont we all start as one?

Thx anyway.
 

Exfyre

hmm...
Reaction score
60
In that trigger make sure to store the caster and dummy to a variable, and then turn on this trigger:

Events
-Every .05 seconds
Conditions
Actions
-Move Dummy instantly to Position of (Dummyvariable) offset by 10 towards (Angle of castervariable) (this is under polar offset or something similar)


In your trigger add the actions
-Wait(duration of spell here) seconds
-Turn off (the trigger i wrote)

EDIT: you will need to set the points to variables in order to destroy them and prevent memory leaks
 

xigon

New Member
Reaction score
1
ur trigger aint working.:banghead::banghead::banghead::banghead::banghead::banghead::banghead::banghead::banghead:

the dummy does follow the facing angle of the caster but doesnt move, just turns.

here is what both triggers look like now:
ParasiteLance
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Parasite Lance
Actions
Unit - Create 1 Parasite (DumyCaster) for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
Set ParasiteCaster = (Casting unit)
Set ParasiteDummy = (Last created unit)
ParasiteMove
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Unit - Move ParasiteDummy instantly to ((Position of ParasiteDummy) offset by 10.00 towards (Facing of ParasiteCaster) degrees), facing (Position of ParasiteCaster)

what am i doing wrong?:banghead::banghead::banghead:
 

CaptDeath

New Member
Reaction score
103
Trigger:
  • ParasiteLance
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Parasite Lance
    • Actions
      • Set ParasiteCaster = (Casting unit)
      • Unit - Create 1 Parasite (DumyCaster) for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
      • Set ParasiteDummy = (Last created unit)

Trigger:
  • ParasiteMove
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Unit - Order Move ParasiteDummy instantly to ((Position of ParasiteDummy) offset by 1.00 towards (Facing of ParasiteCaster) degrees), facing (Position of ParasiteCaster)

try that if that doesn't work i dunno Plus how far did you walk away
The Order part is free handed there is such a thing in gui
 

Beetlebomb

New Member
Reaction score
43
Instead of using Finishes casting an ability use Starts the effect of an ability.

Also, Make sure you set the casting unit as your very first action. Setting the last created unit into a variable should always be used right after you've created the unit to prevent any problems.

If it still doesn't work, something else is wrong.

Good luck
 
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