• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Effects facing wrong way

Status
Not open for further replies.
Level 2
Joined
Jan 28, 2008
Messages
23
I am new and I am trying to make a spell like hellfire laser but got a problem that the effects are facing wrong way. Can you help me?

Screens:




As you see on second screen dragon is spelling in top right direction and effects are in bottom right
My editor is in polish.
Some translation :p :
Jednostka > Unit
Animacja > Animation
Wyzwalacz > Trigger
Gracz > player
 
Level 5
Joined
Nov 7, 2007
Messages
134
The spell is a unit target spell? In that case, the problem may be that the "Target point of ability being cast" does not exist, since the spell targets a unit and not a point. In which case, I suggest changing every "Target point of ability being cast" into "Position of (Target unit of ability being cast)". If the case is the reverse, that the spell targets a point and not a unit, then "Target unit of ability being cast" is useless. In which case I suppose you could use "Unit group - Pick every unit in region centered at Target point of ability being cast with size 100*,100*" and then replace any "Target unit of ability being cast" with "Picked unit" (this is of course given that there is only one unit within the target region). This may be the issue.

*Size 100 is just an example, it depends on how large area of effect you want the spell to have.
 
Level 2
Joined
Jan 28, 2008
Messages
23
No its not unit target spell its shockwave ability i add a map, a sec.
 

Attachments

  • eqwew.w3x
    73.6 KB · Views: 36
It's the Revive Model that doesn't face the angle right. It should be ((Angle between Pos and Point) + 90) (it's the model's problem, not yours ;)).

You don't need to wait 2.00 seconds to remove the leaks.
Prefer (Triggering unit) over (Casting unit).

You can also use a trigger like this, when you have to do with multiple unit-types:
  • Beam
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Beam Cannon
    • Actions
      • Set Caster = (Triggering unit)
      • Set Enemy = (Target unit of ability being cast)
      • Set Point = (Position of Caster)
      • Set Pos = (Target point of ability being cast)
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummies[(Integer A)] for (Triggering player) at Point facing Pos
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation (udg_Point)
      • Custom script: call RemoveLocation (udg_Pos)
The Dummies[] is a Unit-type variable, defined in the Map Initialization trigger:
  • Actions
    • Set Dummies[1] = Dummy
    • Set Dummies[2] = Dummy1
    • Set Dummies[3] = Dummy2
    • Set Dummies[4] = Dummy3
 
Status
Not open for further replies.
Top