GetPlayerEquippedWeaponSlot: Difference between revisions

From Onset Developer Wiki
Justus (talk | contribs)
m info fill for GetPlayerEquippedWeaponSlot
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Info|Function|Client & Server|1.0}}
{{Info|Function|Client & Server|1.0}}


{{FuncDescription|Returns the slot the playeer currently has equiped}}
{{FuncDescription|Returns the slot the player currently has equiped}}


{{FuncSyntax|GetPlayerEquippedWeaponSlot(player)}}
{{FuncSyntax|GetPlayerEquippedWeaponSlot(player)}}
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
print("Equipped Weapon Slot: " .. GetPlayerEquippedWeaponSlot(player))
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{ServerPlayerFunctions}}

Latest revision as of 14:49, 26 June 2021

GetPlayerEquippedWeaponSlot

Type: Function
Context: Client & Server
Introduced: v1.0

Description

Returns the slot the player currently has equiped

Syntax

GetPlayerEquippedWeaponSlot(player)

Parameters

  • player
    The player identifier

Return Value

  • The weapon slot the player currently has equipped

Example

print("Equipped Weapon Slot: " .. GetPlayerEquippedWeaponSlot(player))

See also