new RezActor(id, attributes)
Parameters:
Name | Type | Description |
---|---|---|
id |
string | |
attributes |
object |
- Source:
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 |
- Source:
Returns:
- Type
- RezDecision
(static) elementInitializer()
initializes properties of RezActor
- Source:
(static) moveTo(to_location_id)
moves this actor to a new location
Parameters:
Name | Type | Description |
---|---|---|
to_location_id |
string |
- Source: