LookAtPos

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search


Description:
This function sets the angle of npc such that it looks at the position given


Parameters:

pos

pos : The Vector position to which npc must look


Return Values:
true on success and false on failure (npc not spawned or npc is in vehicle).


Example The following code makes to look at player with ID 0.

LookAtPos(GetPlayerPos(0))

Related Functions

The following functions may be helpful as they relate to this function in one way or another.