AW AVATAR SESSION
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
| Minimum requirements | ||
|---|---|---|
| Added in version 2.1 | ||
| SDK | build 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
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
- AW_CALLBACK_ADDRESS
 - AW_CALLBACK_AVATAR_LOCATION
 - AW_EVENT_AVATAR_ADD
 - AW_EVENT_AVATAR_CHANGE
 - AW_EVENT_AVATAR_CLICK
 - AW_EVENT_AVATAR_DELETE
 - AW_EVENT_AVATAR_RELOAD
 - AW_EVENT_ENTITY_RIDER_ADD
 - AW_EVENT_ENTITY_RIDER_CHANGE
 - AW_EVENT_ENTITY_RIDER_DELETE
 - AW_EVENT_OBJECT_BUMP
 - AW_EVENT_OBJECT_CLICK
 - AW_EVENT_OBJECT_SELECT
 - AW_EVENT_URL
 - AW_EVENT_URL_CLICK