GetDistanceFromMeToPoint
Revision as of 15:14, 15 March 2022 by 137.97.101.184 (talk) (Created page with "{{Welcome| desc=Gets the distance from NPC to a point.| params=<syntaxhighlight lang="lua">(point)</syntaxhighlight> <poem>::point: The Vector point to which distance form NPC...")
Description:
Gets the distance from NPC to a point.
Parameters:
(point)
point: The Vector point to which distance form NPC is to be measured.
Return Values:
Returns the required distance as float.
Example
local d=GetDistanceFromMeToPoint(GetPlayerPosition(0)); print("The distance between me and Player 0 is "+d);
Related Functions
The following functions may be helpful as they relate to this function in one way or another.