EquipPlayerWeaponSlot: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
{{FuncParam|weaponslot|The weapon slot (range 0 - 3)}} | {{FuncParam|weaponslot|The weapon slot (range 0 - 3)}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns ''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | <syntaxhighlight lang="Lua> | ||
EquipPlayerWeaponSlots(playerId, 1) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{WeaponFunctions}} |
Revision as of 20:40, 18 December 2019
Description
Equip the specified weapon slot for the specified player.
Syntax
EquipPlayerWeaponSlot(player, weaponslot)
Parameters
- player
The player identifier. - weaponslot
The weapon slot (range 0 - 3)
Return Value
- This function returns true' on success.
Example
EquipPlayerWeaponSlots(playerId, 1)