VP EVENT OBJECT: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Roy Curtis (talk | contribs)
Created page with "{{sdk event page|object|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 {{sdk function|query_ce..."
 
Roy Curtis (talk | contribs)
m fixed id
Line 6: Line 6:


   {{sdk attribute header|Data of the created object:}}
   {{sdk attribute header|Data of the created object:}}
   {{sdk attribute row|int  |object_user_id      |Unique ID}}
  {{sdk attribute row|int  |object_id            |Unique ID}}
   {{sdk attribute row|int  |object_user_id      |Creator's ID}}
   {{sdk attribute row|int  |object_time          |Timestamp}}
   {{sdk attribute row|int  |object_time          |Timestamp}}
   {{sdk attribute row|int  |object_type          |Type}}
   {{sdk attribute row|int  |object_type          |Type}}

Revision as of 20:35, 25 August 2013

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 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

  • If the object was created by a client, VP_AVATAR_SESSION will have their session number, else it will be -1

Examples

This event has no usage examples; please add at least one to this page