HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Changing Facing Angle Of Unit without movement

04-05-2007, 11:39 PM#1
rulerofiron99
Not sure if this has been asked before (i did search), and not sure how much of a noob question this is.

I'm making a MtG-style turn based card game and all the summoned creatures have no movement or attack - attacks are made by an ability. And I don't want the cluttered up Move, Hold, Stop and Patrol buttons, so I removed movement completely.

Now my problem is that they can only face default building facing angle, and my attempts at changing this aren't getting me anywhere.

If you can help I'd appreciate it, but don't go spending hours designing something to remove it - it's not something that will change my map's gameplay or hinder progress.
04-05-2007, 11:42 PM#2
Anopob
Can't you just (when creating the unit) change it's facing direction? Or you can't with no movement?
04-06-2007, 12:58 AM#3
rulerofiron99
I've tried chaning facing with the action for it, and I've tried moving to face angle, neither have worked. I'm gonna try a few more things, but nothing seems to work.
04-06-2007, 02:38 AM#4
Szythe
Keep movement enabled on all units. When a unit is created, call

Collapse JASS:
call UnitRemoveAbility(unit, 'Amov')

(of course replace "unit" with the unit.)

Then, you can set the facing angle of the unit anytime, and it cannot move.
04-06-2007, 07:57 AM#5
blu_da_noob
After you remove the 'Amov' ability, use call SetUnitTurnSpeed(yourunit,turnspeed) and you can then set its facing with triggers again. Get the turnspeed for each unit from the Object Editor, or just have a generic one of say 0.5 (turn speed is between 0 and 1).