AW OBJECT SESSION TO
Minimum requirements | ||
---|---|---|
Added in version 4.2 | ||
SDK | build 75 | |
World | build 95 |
AW_OBJECT_SESSION_TO
Type
Integer
Description
Session to receive an object click or bump event.
Notes
The attribute AW_OBJECT_SYNC must be set to 1 (true) when a session is specified.
Important: Using AW_OBJECT_SYNC requires that AW_WORLD_ENABLE_SYNC_EVENTS has been set to 1 (true) in the world (aswell as AW_WORLD_ENABLE_BUMP_EVENT for calls to aw_object_bump).
If set to a session prior to calling aw_object_click then only it will receive the resulting AW_EVENT_OBJECT_CLICK.
If set to a session prior to calling aw_object_bump then only it will receive the resulting AW_EVENT_OBJECT_BUMP.
If set to 0 (zero) then AW_EVENT_OBJECT_CLICK and AW_EVENT_OBJECT_BUMP will be propagated to all the neighbors.
The object must have the appropriate trigger and a command with the global parameter for this to have any effect in an Active Worlds Browser (e.g. "activate rotate 0 0 20 global" or "bump rotate 0 0 20 global").
Note that if the bot is in global mode then it does not have to be nearby the object.