Jump to content
Sign in to follow this  
Protector1

Set where an NPC looks/aims?

Recommended Posts

How can I set the direction an NPC (or the player, for that matter), is looking in/aiming at?

Share this post


Link to post
Share on other sites

setDir.

Sets an object heading so it'll turn the whole body towards that direction.

Share this post


Link to post
Share on other sites

That only sets the angle on the horizontal plane. How would I set the vertical angle?

Share this post


Link to post
Share on other sites

_pos = _unit modelToWorld [random 30,random 30,random 50];
_unit commandWatch _pos

---------- Post added at 07:35 ---------- Previous post was at 07:33 ----------

or dotarget instead of commandwatch

Share this post


Link to post
Share on other sites

Cool! Thanks a bundle!

Edit: but I can't get it to work! I tried something like

player commandWatch (player modelToWorld [random 30,random 30,random 50])

but nothing happens!

Edited by Protector1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×