GetPlayerWeapon: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Returns the specified player's weapon id, ammo, ammo in magazine in the specified weapon slot.}}


{{FuncSyntax|GetPlayerWeapon(player [, weaponslot])}}
{{FuncSyntax|GetPlayerWeapon(player [, weaponslot])}}
Line 17: Line 17:


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[SetPlayerWeapon]]

Revision as of 15:02, 16 November 2019

GetPlayerWeapon

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

Description

Returns the specified player's weapon id, ammo, ammo in magazine in the specified weapon slot.

Syntax

GetPlayerWeapon(player [, weaponslot])
Client Syntax
GetPlayerWeapon(weaponslot)

Parameters

  • player
    The player identifier.
  • weaponslot (optional)
    The weapon slot.

Return Value

  • Returns weapon id, ammo.

Client Return Value

  • Returns weapon id, ammo, ammo in magazine.

Example

__EDIT_ME__

See also