-
-
Notifications
You must be signed in to change notification settings - Fork 10
match.CreateWeapon
Jérôme Leclercq edited this page Dec 8, 2020
·
1 revision
API: match.CreateWeapon
Creates a new weapon in the match.
match.CreateWeapon(parameters: table) -> weapon: Weapon
-
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).
- (Mandatory) Type:
-
weapon: The newly created weapon.