A TakeInventory

From ECWolf Wiki

A_TakeInventory (string item, int amount)

Removes at most amount (can be less if the actor doesn't have enough) of a given inventory item from the calling actor's inventory.