GetPlayerBoneLocation: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetPlayerBoneLocation(player, BoneName [, BoneSpace])}} {{FuncParameters}} {{FuncParam|player|__ED..." |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{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| | {{FuncParam|player|The player identifier}} | ||
{{FuncParam|BoneName | | {{FuncParam|BoneName |The bone name}} | ||
{{FuncParamOptional|BoneSpace| | {{FuncParamOptional|BoneSpace|1 = World Space, 2 = Local Space}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns X, Y, Z of the bone location.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
GetPlayerBoneLocation(playerId, boneName) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
__EDIT_ME__ | __EDIT_ME__ |
Latest revision as of 19:32, 18 January 2020
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__