object.remove_weapon

Remove a weapon from a biped.

Arguments

mode

One of the following values:

primary
Remove the biped's primary weapon.
secondary
Remove the biped's secondary weapon.
delete

A boolean indicating whether to delete the weapon (true) or merely drop it (false).

Example

--
-- Fore all players to be unarmed:
--
for each player do
   current_player.biped.remove_weapon(secondary, true)
   current_player.biped.remove_weapon(primary, true)
end

See also