GetActorHandItem
The item in an actor’s hand.
What SetActorHandItem put there: your own item by its name (DefineItem), else the class GUID.
Syntax
Section titled “Syntax”GetActorHandItem(id [, hand])| Parameter | Type | |
|---|---|---|
id |
number | the actor |
hand |
string | "right" (the default) or "left" (optional) |
Returns
Section titled “Returns”string, or nil for an empty hand
Example
Section titled “Example”if GetActorHandItem(id) == "woodaxe" then SetActorHandItem(id, nil) end -- the woodcutter's day is overSee also
Section titled “See also”SetActorHandItem · the NPC actors group of the index
