Integer (read only)
Specifies an avatar's y coordinate during the events AW_EVENT_AVATAR_ADD and AW_EVENT_AVATAR_CHANGE.
Avatar coordinates are in centimeters. The y coordinate specifies the avatar's elevation, with positive being above the ground and negative being below the ground.
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;