A weapon pickable.
Spawnable via "worldInfo:CreateWeapon(name, pos)". IMPORTANT: Weapon pickables are networked, and therefore should ONLY be created on the host. Trying to create them on the client may result in issues.
public string GetWeapon()
(Client) Gets the weapon name of this pickable.
Returns: (string) The name of the weapon.
public void SetWeapon(string weapon)
(Server) Sets the weapon type of this pickable.
Arguments
public bool GetPickable()
(Client) Gets whether this pickable can be picked up.
Returns: (bool) Whether this pickable can be picked up.
public void SetPickable(bool pickable)
(Client) Sets whether this pickable can be picked up.
Arguments
public bool GetReplacementAllowed()
(Client) Gets whether this pickable can replace other weapons.
Returns: (bool) Whether this pickable can replace other weapons.
public void SetReplacementAllowed(bool allowed)
(Client) Sets whether this pickable can replace other weapons.
Arguments