This function removes the spawn weapon from the given slot of a SpawnClass.
- int SpawnClass.RemoveWeapon( int iSlot )
- iSlot - The slot you want to remove the weapon from. There are three slots available: 1, 2 and 3
- function onPlayerCommand( player, cmd, text )
- if ( cmd == "remwep" )
- p_SpawnClass.RemoveWeapon( 1 );
This example will remove the weapon in slot 1, from the class, that we created earlier in FindSpawnClass.
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.