VP EVENT OBJECT: Difference between revisions
Jump to navigation
Jump to search
Roy Curtis (talk | contribs) m fixed id |
Roy Curtis (talk | contribs) fixed wording on rotation |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
{{sdk attribute row|float |object_y |Y position}} | {{sdk attribute row|float |object_y |Y position}} | ||
{{sdk attribute row|float |object_z |Z position}} | {{sdk attribute row|float |object_z |Z position}} | ||
{{sdk attribute row|float |object_rotation_x |X | {{sdk attribute row|float |object_rotation_x |X axis-angle rotation}} | ||
{{sdk attribute row|float |object_rotation_y |Y | {{sdk attribute row|float |object_rotation_y |Y axis-angle rotation}} | ||
{{sdk attribute row|float |object_rotation_z |Z | {{sdk attribute row|float |object_rotation_z |Z axis-angle rotation}} | ||
{{sdk attribute row|float |object_rotation_angle| | {{sdk attribute row|float |object_rotation_angle|A axis-angle rotation}} | ||
{{sdk attribute row|data |object_data |Arbitrary data}} | {{sdk attribute row|data |object_data |Arbitrary data}} | ||
|behavior= | |behavior= | ||
If this event was fired as a result of an object created by a client, {{sdk attribute|avatar_session}} will have their session number. Otherwise, query results will have this set to {{code|-1}}. | |||
|caveats= | |caveats= | ||
|examples= | |examples= | ||
|seealso= | |seealso= | ||
}} | }} |
Latest revision as of 09:23, 11 May 2014
Event set and handler snippet
vp_event_set(instance, VP_EVENT_OBJECT, event_object);
void event_object(VPInstance instance) { }
This event is received:
- Each time an object is created anywhere in the world
- For each object in a cell queried by a call to
vp_query_cell()
Attributes
Attribute | Usage | |
---|---|---|
VP_AVATAR_SESSION | Session ID of object's creator | |
Data of the created 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 axis-angle rotation | |
VP_OBJECT_ROTATION_Y | Y axis-angle rotation | |
VP_OBJECT_ROTATION_Z | Z axis-angle rotation | |
VP_OBJECT_ROTATION_ANGLE | A axis-angle rotation | |
VP_OBJECT_DATA | Arbitrary data |
Behavior
If this event was fired as a result of an object created by a client, VP_AVATAR_SESSION
will have their session number. Otherwise, query results will have this set to -1
.
Examples
- This event has no usage examples; please add at least one to this page