AW CHAT CITIZEN

From ActiveWiki
Revision as of 20:27, 2 June 2012 by Chris (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Minimum requirements
Added in version 4.2
SDKbuild 75


AW_CHAT_CITIZEN

Type

Integer (read only)

Description

Session number of the user that sent a chat message.

Notes

Every registred user uses a certain citizen number at login. This citizen number can be used by SDK applications to track individual users as they move around the scene.

Usage

void handle_chat (void)
{
  printf ("Citizen#%d just said \"%s\"\n",
          aw_int (AW_CHAT_CITIZEN),
          aw_string (AW_CHAT_MESSAGE));
}

aw_event_set (AW_EVENT_CHAT, handle_chat);

Used by

See also