GetPlayerBoneLocation: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 3: Line 3:
{{FuncDescription|This function returns the bone location of the player.}}
{{FuncDescription|This function returns the bone location of the player.}}


{{FuncSyntax|GetPlayerBoneLocation(player, BoneName [, BoneSpace])}}
{{FuncSyntax|GetPlayerBoneLocation(player, BoneName [, BoneSpace = 1])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|The player identifier}}
{{FuncParam|player|The player identifier}}
{{FuncParam|BoneName |The bone name}}
{{FuncParam|BoneName |The bone name}}
{{FuncParamOptional|BoneSpace|__EDIT_ME__}}
{{FuncParamOptional|BoneSpace|1 = World Space, 2 = Local Space}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns X, Y, Z of the bone location.}}


== Example ==
== Example ==

Latest revision as of 19:32, 18 January 2020

GetPlayerBoneLocation

Type: Function
Context: Client
Introduced: v1.0

Description

This function returns the bone location of the player.

Syntax

{{{1}}}

Parameters

  • player
    The player identifier
  • BoneName
    The bone name
  • World Space, 2 = Local Space (optional)
    {{{2}}}

Return Value

  • Returns X, Y, Z of the bone location.

Example

GetPlayerBoneLocation(playerId, boneName)

See also

__EDIT_ME__