• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

help me wiht shockwave effect!

Status
Not open for further replies.
Level 5
Joined
Oct 31, 2007
Messages
108
:cry:i got a problem with spell trigger the problem, is that i want a shockwave ability which shoots a unit in the chosen direction but i dont know how do it im now using a delay then order unit to move to polar offset rotation of casting unit (hero) or something like that
 
Then:

-Variables:
-Real = facing of triggering unit
-Point1 = targeted point of ability being cast offset by 1000 facing Real
-Point2 = position of triggering unit

-Actions:
-Create 1 dummy at Poin2...
-add ~1 second expiration timer to last created unit
-order last created unit to move to point1
-clear leaks

But note that maximum unit speed is 522, so if you want dummy to be faster you'll need periodic trigger (that 0.03 thing) that moves dummy.

Or you can simply make another shockwave with 0 damage and with different model, and dthe dummy casts it right after you cast the main one.
 
  • SW
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to SW
    • Actions
      • Set Real_Facing = (Facing of (Triggering unit))
      • Set loc1 = (Target point of ability being cast)
      • Set loc2 = (loc1 offset by 1000.00 towards (Real_Facing) degrees)
      • Set loc3 = (Position of (Triggering unit))
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at loc3 facing Default building facing degrees
      • Unit - Order (Last created unit) to Move To loc2
      • Custom script: call RemoveLocation(udg_loc1)
      • Custom script: call RemoveLocation(udg_loc2)
      • Custom script: call RemoveLocation(udg_loc3)
or

  • SW
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to SW
    • Actions
      • Set loc1 = (Target point of ability being cast)
      • Set loc2 = (Position of (Triggering unit))
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at loc2 facing Default building facing degrees
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Unit - Add SW(dummy) to (Last created unit)
      • Unit - Order (Last created unit) to orc tauren - shockwave To loc1
      • Custom script: call RemoveLocation(udg_loc1)
      • Custom script: call RemoveLocation(udg_loc2)

Dunno I've made this in 2 minutes...
 
Be happy i was drunk this afternoon :p

I was good and i made this, but note its not MUI nor MPI D:

<removed>

Hope you find it useful ^^

Edit:

Ahh, now i see you want shock wave with knockback... just browse in spell section, there are 2 spells of this kind(as far as i know)

Edit:

Ok, here is with some sort of knockback :D
 

Attachments

  • SW[custom]v1.2.w3x
    36 KB · Views: 52
Status
Not open for further replies.
Top