Page 1 of 1

SetUnitTurnToFace

Posted: Mon Oct 08, 2012 5:41 pm
by enric
For example, I add some random units as reinforcements, and I want the units are placed facing to a tile in the center of the map. As the added units will come from a random edge of the map, I found that this functions (SetUnitTurnToFace(id, 27, 23)) puts the units facing to the tile, BUT, if it's a tank the turret is not facing to the center.

How can a move the turret so it's facing the same facing that the unit?.
I see several functions to GET the turret angle or facing but not to move it.

Re: SetUnitTurnToFace

Posted: Mon Oct 08, 2012 10:25 pm
by pipfromslitherine
You might be right, we might need a function specifically for the turret facing. Although, could you use AddVizUnitTurnToFire to point the turret to the correct point?

Cheers

Pip

Re: SetUnitTurnToFace

Posted: Mon Oct 08, 2012 10:45 pm
by enric
Thank you, this seems to work.