AW_AVATAR_GESTURE

TYPE

Integer (read only)

DESCRIPTION

Specifies the current gesture in progress (if any) for an avatar during the events AW_EVENT_AVATAR_ADD and AW_EVENT_AVATAR_CHANGE.

NOTES

The gesture number is a one-based index into the list of gestures available for that avatar.  A value of 0 indicates that no gesture is in progress.

EXAMPLE

void avatar_change (void)
{

  int gesture;
  gesture = aw_int (AW_AVATAR_GESTURE);
  if (gesture != 0)
    printf ("%s has triggered gesture %d\n", aw_string (AW_AVATAR_NAME),
      gesture);

}

aw_event_set (AW_EVENT_AVATAR_CHANGE, avatar_change);
aw_state_change ();
for (;;)
  if (aw_wait (1000))
    break;

SEE ALSO

AW_EVENT_AVATAR_ADD
AW_EVENT_AVATAR_CHANGE