Skip to content

RemoveActorItem

Takes items from an actor - what it carries first, then what it wears.

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)

boolean - false when the actor has none of it (or was never given items)

-- disarmed: the sword goes, the body puts it away on every screen
RemoveActorItem(bandit, "longswordCommon")

SetActorInventory · GiveActorItem · the NPC actors group of the index