Skip to content
Jérôme Leclercq edited this page Dec 8, 2020 · 1 revision

API: match.CreateWeapon

Description:

Creates a new weapon in the match.

Prototype:

match.CreateWeapon(parameters: table) -> weapon: Weapon

Parameters:

  1. parameters: A table describing all parameters to create the weapon. Possible fields:
    • (Mandatory) Type: string : The entity class full name (e.g. "weapon_sword")
    • (Mandatory) Owner: Entity : A reference to the entity which will own this weapon.
    • (Optional) Properties: table : A table giving a value for every property of the weapon class (some of which may be mandatory).

Returns:

  1. weapon: The newly created weapon.

Clone this wiki locally