Integer (read only)
Specifies an avatar's x coordinate during the events AW_EVENT_AVATAR_ADD and AW_EVENT_AVATAR_CHANGE.
Avatar coordinates are in centimeters. The x coordinate specifies the avatar's position along the east/west axis, with west being positive.
void avatar_change (void)
{
printf ("%s has moved to (%d, %d, %d)\n", aw_string (AW_AVATAR_NAME),
aw_int (AW_AVATAR_X), aw_int (AW_AVATAR_Y), aw_int (AW_AVATAR_Z));
}
aw_event_set (AW_EVENT_AVATAR_CHANGE, avatar_change);
aw_state_change ();
for (;;)
if (aw_wait (1000))
break;