Editing LookAtPlayer
Revision as of 04:59, 6 September 2024 by Habi (talk | contribs) (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=*...")
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.