GetVehicleBoneLocation: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|Returns the location of a vehicle bone/socket.}}
{{FuncDescription|Returns the location of a vehicle bone/socket. For a list of bones see [[VehicleBones]].}}


{{FuncSyntax|GetVehicleBoneLocation(vehicle, BoneName [, BoneSpace])}}
{{FuncSyntax|GetVehicleBoneLocation(vehicle, BoneName [, BoneSpace])}}
Line 7: Line 7:
{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|vehicle|The vehicle identifier.}}
{{FuncParam|vehicle|The vehicle identifier.}}
{{FuncParam|BoneName|The bone name as string.}}
{{FuncParam|BoneName|The bone name as string. [[VehicleBones]]}}
{{FuncParamOptional|BoneSpace|1 for WorldSpace, 2 for LocalSpace.}}
{{FuncParamOptional|BoneSpace|1 for WorldSpace, 2 for LocalSpace.}}



Latest revision as of 14:24, 20 October 2019

GetVehicleBoneLocation

Type: Function
Context: Client
Introduced: v1.0

Description

Returns the location of a vehicle bone/socket. For a list of bones see VehicleBones.

Syntax

GetVehicleBoneLocation(vehicle, BoneName [, BoneSpace])

Parameters

  • vehicle
    The vehicle identifier.
  • BoneName
    The bone name as string. VehicleBones
  • BoneSpace (optional)
    1 for WorldSpace, 2 for LocalSpace.

Return Value

  • Returns the location X, Y, Z.

Example

__EDIT_ME__

See also

__EDIT_ME__