Wrapper for the base class for all the weapons.
public void PerformAction(int index)
(Client) Performs a weapon action.
Arguments
public string GetWeaponType()
(Client/Server) Get the weapon type
Returns: (string) The weapon type.
public string GetWeaponName()
(Client/Server) Gets the internal name of the weapon.
Returns: (string) The internal name of the weapon.
public PlayerControllerWrapper GetOwner()
(Client/Server) Get the owner of this weapon.
Returns: (PlayerController) The owner, or nothing.
public void SetWeaponAllowedUsage(bool allowed)
(Server) Set whether the player can fire this weapon.
Arguments