AW EVENT ENTITY DELETE

From ActiveWiki
Revision as of 14:41, 3 November 2008 by Macavity (talk | contribs) (browser buil)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Minimum requirements
Added in version 4.1
SDKbuild 53
Browserbuild 948


AW_EVENT_ENTITY_DELETE

Description

The event is triggered as soon a mover gets out of visible view.

Attributes

AW_ENTITY_TYPE
AW_ENTITY_ID

Usage

void handle_entity_delete (void)
{
  if (aw_int (AW_ENTITY_TYPE) != AW_ENTITY_TYPE_MOVER)
    return;
  
  printf ("Mover %d deleted from scene\n", aw_int (AW_ENTITY_ID));
}

aw_event_set (AW_EVENT_ENTITY_DELETE, handle_entity_delete);

See also