LookAtPos: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 October 2024

  • curprev 16:5816:58, 29 October 2024Habi talk contribs 452 bytes +452 Created page with "{{Welcome| desc=This function sets the angle of npc such that it looks at the position given| params=<syntaxhighlight lang="lua"> pos</syntaxhighlight> <poem>::pos : The Vector position to which npc must look</poem>| example= The following code makes to look at player with ID 0. <source lang="lua"> LookAtPos(GetPlayerPos(0))</source>| relfuncs=*LookAtPlayer| retvals=true on success and false on failure (npc not spawned or npc is in vehicle.| }}"