CNavArea/GetClosestPointOnArea

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added this page)
 
 
Line 2: Line 2:
 
|Name=GetClosestPointOnArea
 
|Name=GetClosestPointOnArea
 
|Parent=CNavArea
 
|Parent=CNavArea
|Description=
+
|Description=Returns the closest point of this Nav Area from the given position.
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes
Line 9: Line 9:
 
|type=Vector
 
|type=Vector
 
|name=pos
 
|name=pos
 +
|desc=The given position, can be outside of the Nav Area bounds.
 
}}
 
}}
 
{{Ret
 
{{Ret
 
|type=Vector
 
|type=Vector
 +
|desc=The closest position on this Nav Area.
 
}}
 
}}

Latest revision as of 17:24, 1 June 2014

 CNavArea:GetClosestPointOnArea( )

Description

Returns the closest point of this Nav Area from the given position.

Arguments

Vector pos

The given position, can be outside of the Nav Area bounds.

Returns

Vector

The closest position on this Nav Area.
Personal tools
Navigation