Skip to content

GetActorHandItem

The item in an actor’s hand.

What SetActorHandItem put there: your own item by its name (DefineItem), else the class GUID.

GetActorHandItem(id [, hand])
Parameter Type
id number the actor
hand string "right" (the default) or "left" (optional)

string, or nil for an empty hand

if GetActorHandItem(id) == "woodaxe" then SetActorHandItem(id, nil) end -- the woodcutter's day is over

SetActorHandItem · the NPC actors group of the index