PathFollower/GetPositionOnPath

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=GetPositionOnPath
 
|Parent=PathFollower
 
 
|Description=Returns the vector position of distance along path
 
|Description=Returns the vector position of distance along path
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes
 +
|Name=GetPositionOnPath
 +
|Parent=PathFollower
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 14: Line 14:
 
|type=Vector
 
|type=Vector
 
|desc=The position
 
|desc=The position
 +
}}
 +
{{Example
 +
|Description=Gets the current position on the path as a {{Type|Vector}}.
 +
|Code=path:GetPositionOnPath( path:GetCursorPosition() )
 
}}
 
}}

Latest revision as of 21:13, 3 August 2015

 PathFollower:GetPositionOnPath( )

Contents

Description

Returns the vector position of distance along path

Arguments

number distance

The distance along the path to query

Returns

Vector

The position

Examples

Example

Gets the current position on the path as a Vector.

path:GetPositionOnPath( path:GetCursorPosition() )


Personal tools
Navigation