Re: Commands->Set_Facing [message #428733 is a reply to message #428721] |
Wed, 19 May 2010 00:57 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma:
|
General (5 Stars) |
|
|
Try setting the looking at location instead for infantry, I can't remember the names of the functions off the top of my head but it lets you set where the infantry unit is 'looking', hence setting the direction it's facing in.
Quick bit of maths to determine the x,y,z of a location 1m from the unit in the direction you want it to face should be all you need.
EDIT: I think it's called something like Force_Camera_Look_Player, but IIRC it should work for AI too.... give it a try.
[Updated on: Wed, 19 May 2010 01:02] Report message to a moderator
|
|
|