VP_EVENT_OBJECT_BUMP_BEGIN

From Virtual Paradise Wiki
Revision as of 08:32, 22 July 2018 by Sleepy E (talk | contribs) (Added missing sdk event)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event set and handler snippet

vp_event_set(instance, VP_EVENT_OBJECT_BUMP_BEGIN, event_object_bump_begin);

void event_object_bump_begin(VPInstance instance) { }

Received when an object is bumped into by a client in the current world.

Attributes

Attribute Usage
VP_AVATAR_SESSION Session ID of client
VP_OBJECT_ID Object's unique ID

Behavior

  • This event is sent regardless of the receiver's distance relative to the bumped object or the client (i.e. global)

Caveats

Because this event only sends the ID of the bumped object, it is difficult to get that object's data unless:

  • The area around the client is queried
  • The data is already known (e.g. if the receiver had created or queried the object)

Examples

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

See also