Any idea how to do this?

ExTrainHeartnet

New Member
Reaction score
0
Hey guys I'm trying to make a spell here that shoots a projectile that moves at a speed around 650, and would either :

Deal damage to both , Hp, and Mana to the first enemy unit it hits.

or

Heal both , Hp, and Mana to the first friendly unit it hits.

I need a rough idea of how to trigger this, could anyone give me a hint? :/
 

dracolich

TH.net Regular
Reaction score
15
on cast - create dummy with proper model and save it
create trigger which would move it in desired side every 0.0X seconds
when move - after every new coordinates group units around dummy by condition "enemy" and if there is, set it as target, do the stuff, remove dummy.

of course u need JASS for that, or find someone
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
Create a dummy unit with your missile as it's model then add the ability's invulnerable and locust.
Trigger:
  • Dummy Create
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to UAbility
    • Actions
      • Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
      • Set T_U = (Last created unit)
      • Unit - Order T_U to Move To ((Position of T_U) offset by 1024.00 towards (Facing of (Casting unit)) degrees)
      • Trigger - Add to Ability <gen> the event (Unit - A unit comes within 256.00 of T_U)

Trigger:
  • Ability
    • Events
    • Conditions
    • Actions
      • Unit - Remove T_U from the game
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Triggering unit)) is an ally of (Owner of T_U)) Equal to True
        • Then - Actions
          • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 25.00)
        • Else - Actions
          • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - 25.00)
 
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