LookAtPlayer: 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.

6 September 2024

  • curprev 04:5904:59, 6 September 2024Habi talk contribs 717 bytes +717 Created page with "{{Welcome| desc=The function sets the angle of the npc to that of the specified player, making the npc face the player.| params=<syntaxhighlight lang="lua">(playerid)</syntaxhighlight> <poem>::playerid : The ID of the player the npc will face.</poem>| example=<source lang="lua"> function OnPlayerText(playerid, message) { if(message=="lookAtMe") { if(GetDistanceFromMeToPoint(GetPlayerPos(playerid))<100.0) { LookAtPlayer(playerid); } } } </source>| relfuncs=*..."