LookAtPos

From NPC for VCMP 0.4 Servers
Revision as of 16:58, 29 October 2024 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.