AW EVENT OBJECT SELECT
Jump to navigation
Jump to search
Minimum requirements | ||
---|---|---|
Added in version 2.2 | ||
SDK | build 14 | |
World | build 21 | |
Browser | build 296 |
AW_EVENT_OBJECT_SELECT
Description
User has selected an object.
Notes
This event is triggered whenever a user selects an object (by right-clicking on the object with the mouse.) It may also be triggered if another SDK application calls aw_object_select.
The avatars for which this event is triggered are governed by neighbor restrictions.
In order to receive this event, the application must first announce its position by calling aw_state_change at least once, or enter a world in global mode.
Attributes
- AW_AVATAR_SESSION
- Session number of user who selected the object.
- AW_AVATAR_NAME
- Name of user who selected the object.
- AW_CELL_X
- AW_CELL_Z
- AW_OBJECT_ID
- AW_OBJECT_NUMBER
Usage
void handle_object_select (void) { printf ("%s has selected object id#%u ref#%d in cell (%d,%d)\n", aw_string (AW_AVATAR_NAME), aw_int (AW_OBJECT_ID), aw_int (AW_OBJECT_NUMBER), aw_int (AW_CELL_X), aw_int (AW_CELL_Z)); } aw_event_set (AW_EVENT_OBJECT_SELECT, handle_object_select);