Skip to content
nhmkdev edited this page Jan 15, 2014 · 12 revisions

Definition

An Interact entity is one that can:

  • Be optionally interacted with by the player
  • Change visual state based on Save state

The Interact entity is extended for items such as a leveldoor or a switch.

Container

Interact Data

var Interacts = ig.global.data.interacts;

Data Format

See Animation Object (State Driven) for details on the ao field.

Format

Interacts.sample =
{
    ht:'', // hud text (displayed when the player collides with the interact) (default: '')
    d:'', // 'Dialogs.' is prepended to the string. The dialog to open when the player interacts with the entity (default: null)
    ao:null // state driven animation object
}

Animation State object Extensions

Additionally each animation state can support the following:

  • a - Action - Action taken when the player interacts with the entity.
Clone this wiki locally