I want to make a backstab spell so I don't want to let the unit cast it if not waching his back. So I thought to check the facing like that:
Abs(Facing of Caster-Facing of Target) < 90
but this doesn't work cause let's say facing of caster is 350 degrees and facing of target is 10. Then...
is there any way of make a trigger run when a unit right clicks an auto-cast ability? (when turns auto-cast on) If not how I can make 2 triggers like that: the one runs when a unit turns immolation on and the other runs when a unit turns immolation off
I want to make a Floating Text fade not just dissapear (destroy). I've made an example of what I do. Why the Floating Text just stays there and doesn't fade after 1 second? Please help me if you can. Thank you.
Text
Events
Unit - A unit Is attacked
Conditions
Actions...
I want to make a Hero Selection System just like the cart pick in Azeroth grand prix = Black terrain around the Hero Rotates Hero Desription at the right and gon to next previus with abilities or arrows no problem. Can anyone help do one or make me one?
I want to make somehow :) to be able to change the terrain in game. Let me explain it more:
A Dialog will show 3 options with different maps
If No1 button clicked then the tarrain will change to style I want as map 1 and create to doodadds
If No1 the same but other terrain style and doodads...
As the title says I want to make a trigger that when a player right clicks a units then the action will select that unit for the player but can't make the event can some help me plz?
I want to make an illusion of a unit and teleport this illusion somewhere else on map whithout any special effects on the unit of which I make the illusion but I can't think of any way to do it...can I have a little help plz?
I want to make a spell that have a chance to absorb damage. I want to make it absorb any kind of damage so I wonder if there is an event to trigger when ANY UNIT (cause I don't know the spesific unit, can be anyone with the ability so can't use EVENT_UNIT_DAMAGED) gets damaged?
I have a problem with globals. I'm really new in Jass but I know a lot about GUI and Java. I try to create something simple and when I try to declare private constant globals like this:
globals
private constant string a
private constant location loc
endglobals
it says expected...