Skip to content

GiveActorItem

Gives an actor one item more - worn unless told otherwise.

Adds to the list SetActorInventory keeps. The first item given replaces the presets’ dress, as a whole list would.

GiveActorItem(id, item [, amount, wear])
Parameter Type
id number the actor
item string the item class (a name, id or GUID)
amount number how many (1 by default) (optional)
wear boolean true (the default) = worn; false = only carried (optional)

boolean - false for an unknown item, a full list (64) or anything but a living person actor

GiveActorItem(guard, "KettleHat01_m01_E1") -- on its head
GiveActorItem(guard, "bread", 2, false) -- in its pockets

SetActorInventory · RemoveActorItem · the NPC actors group of the index