AW AVATAR SESSION

From ActiveWiki
Jump to: navigation, search


Minimum requirements
Added in version 2.1
SDKbuild 13


AW_AVATAR_SESSION

Type

Integer (read only)

Description

Session number of a user for which an event or callback was triggered (mostly avatar-related).

Notes

Every user is assigned a unique session number at login. This session number can be used by SDK applications to track individual users as they move around the scene.

Note that a new session number is assigned on every login. This means that for example if a user exits and then re-enters then it will appear with a new session number even though its the same user as before. Changing privileges will also cause a relogin, meaning that the assigned session number will change.

Range

Minimum:1
Maximum:65335

Usage

void handle_avatar_add (void)
{
  printf ("%s has session number %d\n",
          aw_string (AW_AVATAR_NAME),
          aw_int (AW_AVATAR_SESSION));
}

aw_event_set (AW_EVENT_AVATAR_ADD, handle_avatar_add);

Used by

See also