hmm it didnt work..... it worked when i was facing one way but when i use it on a unit while i was facing the other way the unit appeared beside the target....
Hmm... I got now what you really need. Just keep moving the unit and use an endless for or something... In which you should include a condition as well if to skip remaining actions. And keep moving the unit behind. This spell should give you more info:
Okay look, no1 really needs jass, you can do most things jass can just as easily with normal triggers. Heres how i got mine towork nicely. Every time it spawned i set an if then else statement, if the facing og the unit was 180 or lower then it spawned the unit at facing+ 180 degrees. Else facing-180
This worked nicly and now it spawns in the right place
there's no such condition. It's checked during the placement action with you use polar placement (im a bit rusty with my trig linguo, haven't trigged in a while)
but yeah, no such condintion i dont think. Thing is, it should Always spawn behind your hero if it's set right. However, some things that might affect yours is perhaps other units in which the unit cannot be placed directly behind and thus uis placed beside. Another thing is offset, which will affect where the unit goes (has to be far enough away).
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Facing of FireWalkCaster) Less than or equal to 180.00
Then - Actions
Unit - Create 1 dummy1 for (Owner of FireWalkCaster) at ((Position of FireWalkCaster) offset by 50.00 towards ((Facing of FireWalkCaster) + 180.00) degrees) facing Default building facing degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Facing of FireWalkCaster) Greater than or equal to 181.00
Then - Actions
Unit - Create 1 dummy1 for (Owner of FireWalkCaster) at ((Position of FireWalkCaster) offset by 50.00 towards ((Facing of FireWalkCaster) - 180.00) degrees) facing Default building facing degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Else - Actions
Do nothing