AW_AVATAR_TYPE

TYPE

Integer (read only)

DESCRIPTION

Specifies the current avatar's type during the events AW_EVENT_AVATAR_ADD and AW_EVENT_AVATAR_CHANGE.

NOTES

The avatar type is a zero-based index into the world's avatar list, with the exception of the special avatars.  Special avatars 1 though 5 are specified as 251, 252, 253, 254, and 255.  The avatar type cannot exceed 255.

EXAMPLE

void avatar_add (void)
{
  printf ("%s is using avatar number %d\n", aw_string (AW_AVATAR_NAME),
    aw_int (AW_AVATAR_TYPE));

}

aw_event_set (AW_EVENT_AVATAR_ADD, avatar_add);
aw_state_change ();
for (;;)
  if (aw_wait (1000))
    break;

SEE ALSO

AW_EVENT_AVATAR_ADD
AW_EVENT_AVATAR_CHANGE