VP EVENT OBJECT CHANGE: Difference between revisions
Jump to navigation
Jump to search
Roy Curtis (talk | contribs) m fix userid attrib |
Roy Curtis (talk | contribs) m ED user id correction |
||
Line 22: | Line 22: | ||
* This event is sent regardless of the receiver's distance relative to the changed object (i.e. global) | * This event is sent regardless of the receiver's distance relative to the changed object (i.e. global) | ||
* All data of the object is sent, even if only some attributes had been changed | * All data of the object is sent, even if only some attributes had been changed | ||
* Except in certain worlds, only the object's creator and a client with user ID | * Except in certain worlds, only the object's creator and a client with user ID 1 may change an object | ||
|caveats= | |caveats= | ||
|examples= | |examples= | ||
|seealso= | |seealso= | ||
}} | }} |
Latest revision as of 23:35, 25 August 2013
Event set and handler snippet
vp_event_set(instance, VP_EVENT_OBJECT_CHANGE, event_object_change);
void event_object_change(VPInstance instance) { }
Received when an object is changed by a client in the current world.
Attributes
Attribute | Usage | |
---|---|---|
VP_AVATAR_SESSION | Session ID of object's changer | |
Data of the changed object: | ||
VP_OBJECT_ID | Unique ID | |
VP_OBJECT_USER_ID | Creator's ID | |
VP_OBJECT_TIME | Timestamp | |
VP_OBJECT_TYPE | Type | |
VP_OBJECT_MODEL | Model file name | |
VP_OBJECT_DESCRIPTION | Description | |
VP_OBJECT_ACTION | Action code | |
VP_OBJECT_X | X position | |
VP_OBJECT_Y | Y position | |
VP_OBJECT_Z | Z position | |
VP_OBJECT_ROTATION_X | X quaternion rotation | |
VP_OBJECT_ROTATION_Y | Y quaternion rotation | |
VP_OBJECT_ROTATION_Z | Z quaternion rotation | |
VP_OBJECT_ROTATION_ANGLE | R quaternion rotation | |
VP_OBJECT_DATA | Arbitrary data |
Behavior
- This event is sent regardless of the receiver's distance relative to the changed object (i.e. global)
- All data of the object is sent, even if only some attributes had been changed
- Except in certain worlds, only the object's creator and a client with user ID 1 may change an object
Examples
- This event has no usage examples; please add at least one to this page