ClearInventory
Jump to navigation
Jump to search
void ClearInventory(void);
Usage
This will clear the player's inventory of weapons, ammo, armor and usable items.
Note: This will not remove an inventory item or weapon that is flagged with the INVENTORY.UNDROPPABLE flag. An explicit call to TakeInventory is required to remove such items.
If the function is run with no activator (for example an OPEN script or removing an existing activator with SetActivator), it will run for and affect all active players in the game.
For a list of things to give, see Inventory.
Examples
This example works cleanly in Doom.
script 50 (void) { Print(s:"You hand your weapons over to security."); ClearInventory(); GiveInventory("Fist", 1); }