• 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.

Facing speed problem.

Status
Not open for further replies.
Level 9
Joined
Jul 4, 2007
Messages
130
Hi.

How to make an unit face instantly an angle ? (instantly = so fast that u can't see it..)

I need this for an unit, which is created and directed to the location I want.
the problem is that the default angle when you create this unit is always 0 (to the right) so it always take some time for the unit to face the location, and it is ugly -_-

any ideas? thanks.
 
Level 15
Joined
Oct 16, 2010
Messages
942
  • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing 180.00 degrees
specifiy what angle you want it to face

or if that doesn't work for some reason, use this right after you create the unit:

  • Unit - Make (Triggering unit) face 180.00 over 0.00 seconds
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
Units created with triggers can just be created at the right angle. If GUI can not support this then you will have to use JASS. I can garuntee you that the create unit native does have a parameter for facing angle the unit should start with in degrees.

If a building trains the unit, then use its rally point to change the unit's spawn facing. The unit will always face the direction it has to move to get to the rally point.

Summoned units via standard abilities can not have altered faceing so will just have to suffer ugly rotation, sorry.
 
Level 9
Joined
Jul 4, 2007
Messages
130
@D4RK G4ND4LF
How do you do the replace thing please?
The angle of my dummy is gonna change each time a ~0.05 timer is called so I dont think this will work.

@Dr Super Good "Units created with triggers can just be created at the right angle" yes, but they cannot face instantly the angle.



Edit: oh sorry im so dumb, the CreateUnit function can make it face instantly... I never test everything.
thanks all.

-----------------------------[SOLVED]-----------------------------
 
Last edited:
Level 15
Joined
Oct 18, 2008
Messages
1,591
@D4RK G4ND4LF
How do you do the replace thing please?
The angle of my dummy is gonna change each time a ~0.05 timer is called so I dont think this will work.

@Dr Super Good "Units created with triggers can just be created at the right angle" yes, but they cannot face instantly the angle.

Then tell us how do you want to use it? Because when you create units YOU CAN SET THE (FACING)ANGLE BY 0.01°
 
Status
Not open for further replies.
Top