AW AVATAR SESSION

From DeltaWiki
Revision as of 21:28, 7 April 2025 by Xan (talk | contribs) (Created page with "{{SDK added in|version=2.1|sort=a|sdk=13|world=|universe=|browser=}} __NOTOC__ {{SUBPAGENAMEE}} ==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 logi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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

Template:SDK range

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