- Counter-Strike 2
- server
- CBaseEntity
- CPathSimple
- Inherits
- CBaseEntityCEntityInstance
- Derived classes
- CPathWithDynamicNodes
- Used by fields
- CTriggerPushm_PathSimple
- Metadata
Fields
NameTypeOffset
path_simplespawnable
- Components
- CPathQueryComponent
Keyvalues
NameTypeField
Inputs
NamePulseDescription
GetClosestDirToEntity(hEntity: ehandle) → (retval: vec3)
Compute the closest direction along the path relative to the entity provided. (world space vector)
GetClosestPosToEntity(hEntity: ehandle) → (retval: vec3)
Compute the closest position on the path relative to the entity provided. (world space vector)
GetClosestTValueToEntity(hEntity: ehandle) → (retval: float)
Compute the closest T value on the path relative to the entity provided. (0.0 to 1.0 float value that defines the point along the spline)
GetDirAtTValue(flTValue: float) → (retval: vec3)
Compute the Direction along the spline at the provided T Value of the spline. (world space vector)
GetDistanceBetweenEntitiesAlongPath(hEntityA: ehandle, hEntityB: ehandle) → (retval: float)
Compute the distance along the path between provided Entity A and Entity B
GetPosAtTValue(flTValue: float) → (retval: vec3_worldspace)
Compute the position at the provided T Value of the spline. (world space vector)
GetTValueAtDistanceOffset(flTValue: float, flDistance: float) → (retval: float)
Given a starting T value on the spline and a distance traveled on the spline, return the resulting T value.
SetEntityAtTValue(hEntity: ehandle, flTValue: float)
Set entity to the position of the provided T value of the spline (world space vector)