Constructor
# new RezActor()
Represents an actor in the Rez game engine. Actors are game entities that can hold inventories, check items, and participate in game events.
Extends
Methods
# static checkItem(inventory_id, slot_id, item_id) → {RezDecision}
when it is attempted to put the specified item into the specified inventory slot, call this actors 'on_accept_item' event handler to give the actor the opportunity to decide whether to accept it or not.
The params passed to the event handler are: decision inventory_id slot_id item_id
The RezDecision will default to yes. The event handler should return an appropriate RezDecision.
Parameters:
| Name | Type | Description |
|---|---|---|
inventory_id |
string
|
|
slot_id |
string
|
|
item_id |
string
|
# static moveTo(to_location_id)
moves this actor to a new location
Parameters:
| Name | Type | Description |
|---|---|---|
to_location_id |
string
|