EquipPlayerWeaponSlot

From Onset Developer Wiki
Revision as of 23:02, 30 January 2020 by Heydoon (talk | contribs) (→‎Fix typo)
EquipPlayerWeaponSlot

Type: Function
Context: Server
Introduced: v1.0

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

EquipPlayerWeaponSlot(playerId, 1)

See also

Template:WeaponFunctions