VP EVENT OBJECT DELETE: Difference between revisions
Jump to navigation
Jump to search
Roy Curtis (talk | contribs) Created page with "{{sdk event page|object_delete|Received when an object is deleted by a client in the current world. |attributes= {{sdk attribute row|int |avatar_session |Session ID ..." |
Roy Curtis (talk | contribs) m ED user id correction |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{sdk event page|object_delete|Received when an object is deleted by a client in the current world. | {{sdk event page|object_delete|Received when an object is deleted by a client in the current world. | ||
|attributes= | |attributes= | ||
{{sdk attribute row|int | {{sdk attribute row|int|avatar_session|Session ID of object's deleter}} | ||
{{sdk attribute row|int | {{sdk attribute row|int|object_id |Object's unique ID}} | ||
|behavior= | |behavior= | ||
* This event is sent regardless of the receiver's distance relative to the deleted object (i.e. global) | * This event is sent regardless of the receiver's distance relative to the deleted object (i.e. global) | ||
* 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 delete 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_DELETE, event_object_delete);
void event_object_delete(VPInstance instance) { }
Received when an object is deleted by a client in the current world.
Attributes
Attribute | Usage | |
---|---|---|
VP_AVATAR_SESSION | Session ID of object's deleter | |
VP_OBJECT_ID | Object's unique ID |
Behavior
- This event is sent regardless of the receiver's distance relative to the deleted object (i.e. global)
- Except in certain worlds, only the object's creator and a client with user ID 1 may delete an object
Examples
- This event has no usage examples; please add at least one to this page