PathFollower/GetClosestPosition

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Func
 
{{Func
 
|Name=GetClosestPosition
 
|Name=GetClosestPosition
|Parent=BotPath
+
|Parent=PathFollower
 
|Description=The closest position along the path to a position
 
|Description=The closest position along the path to a position
|Realm=
+
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes
|File_Name=src/garrysmod/Objects/lua_path.cpp
 
|File_Line=265
 
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 15: Line 13:
 
{{Ret
 
{{Ret
 
|type=Vector
 
|type=Vector
|desc=position
+
|desc=The closest position on the path
 
}}
 
}}

Latest revision as of 21:49, 29 June 2014

 PathFollower:GetClosestPosition( )

Description

The closest position along the path to a position

Arguments

Vector position

The point we're querying for

Returns

Vector

The closest position on the path
Personal tools
Navigation