WhereIsPlayer: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome|desc=Consider the situation in which a player is near to npc. This function gives an angle in radians relating to the position of the player.| params=<syntaxhighligh...") |
No edit summary |
||
Line 2: | Line 2: | ||
params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>| | params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>| | ||
retvals=<poem>The angle from where the npc is facing towards to where the player is. 0 means player is infront. Positive values means player is to the left of npc and negative values indicate he is on the right side. Values range from -PI to PI.</poem>| | retvals=<poem>The angle from where the npc is facing towards to where the player is. 0 means player is infront. Positive values means player is to the left of npc and negative values indicate he is on the right side. Values range from -PI to PI.</poem>| | ||
relfuncs=*[[FaceNPCToPlayer]] | |||
}} | }} |
Latest revision as of 04:47, 5 December 2022
Description:
Consider the situation in which a player is near to npc. This function gives an angle in radians relating to the position of the player.
Parameters:
NoParams
Return Values:
The angle from where the npc is facing towards to where the player is. 0 means player is infront. Positive values means player is to the left of npc and negative values indicate he is on the right side. Values range from -PI to PI.
Related Functions
The following functions may be helpful as they relate to this function in one way or another.