AW EVENT AVATAR DELETE

From ActiveWiki
Jump to navigation Jump to search


Minimum requirements
Added in version 2.1
SDKbuild 13


AW_EVENT_AVATAR_DELETE

Description

An avatar was removed from being a neighbor.

Notes

In order to receive the event, an instance must first announce its position by calling aw_state_change at least once, or enter the world in global mode. Only avatars for which AW_EVENT_AVATAR_ADD has been received will trigger this event.

Attributes

AW_AVATAR_SESSION
AW_AVATAR_NAME

Usage

void avatar_delete (void)
{
  printf ("%s has left the scene\n", aw_string (AW_AVATAR_NAME));
}

aw_event_set (AW_EVENT_AVATAR_DELETE, avatar_delete);

Triggered by

  • aw_exit
  • aw_destroy
  • aw_term
  • When another user is disconnected from the world server (either due to an ejection or network failure).

See also