Class

RezActor

RezActor()

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.

View Source rez_actor.js, line 5

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

View Source rez_actor.js, line 17

RezDecision

# static elementInitializer()

initializes properties of RezActor

View Source rez_actor.js, line 51

# static moveTo(to_location_id)

moves this actor to a new location

Parameters:
Name Type Description
to_location_id string

View Source rez_actor.js, line 62