Scripting/Server/Classes/Player/ClearWeapons

Removes all weapons.

Syntax

player.ClearWeapons()

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "clearweapons" )
	{
		player.ClearWeapons();
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Player

Categories: Server methods | Player