RemoveActorItem
Takes items from an actor - what it carries first, then what it wears.
Syntax
Section titled “Syntax”RemoveActorItem(id, item [, amount])| Parameter | Type | |
|---|---|---|
id |
number | the actor |
item |
string | the item class (a name, id or GUID) |
amount |
number | how many (1 by default) (optional) |
Returns
Section titled “Returns”boolean - false when the actor has none of it (or was never given items)
Example
Section titled “Example”-- disarmed: the sword goes, the body puts it away on every screenRemoveActorItem(bandit, "longswordCommon")See also
Section titled “See also”SetActorInventory · GiveActorItem · the NPC actors group of the index
