AW EVENT ENTITY DELETE

From ActiveWiki
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