Skip to content
nhmkdev edited this page Jan 5, 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

Thing Data

var Interacts = ig.global.data.interacts;

Data Format

See Animation Object 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
    ao:
    {
        i:'switch',
        w:16,
        h:16,
        a: null // animation object
    }
}

Clone this wiki locally