VP EVENT AVATAR CLICK: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Roy Curtis (talk | contribs)
Created page with "{{sdk event page|avatar_click|Received when an avatar is clicked by a client in the current world. |attributes= {{sdk attribute row|int |avatar_session|Session ID of avata..."
 
Roy Curtis (talk | contribs)
m minor source fix
 
Line 1: Line 1:
{{sdk event page|avatar_click|Received when an avatar is clicked by a client in the current world.
{{sdk event page|avatar_click|Received when an avatar is clicked by a client in the current world.
|attributes=
|attributes=
   {{sdk attribute row|int   |avatar_session|Session ID of avatar's clicker}}
   {{sdk attribute row|int |avatar_session |Session ID of avatar's clicker}}
   {{sdk attribute row|int   |clicked_session|Session ID of the clicked avatar}}
   {{sdk attribute row|int |clicked_session|Session ID of the clicked avatar}}
   {{sdk attribute row|float |click_hit_x   |X coordinate of click}}
   {{sdk attribute row|float|click_hit_x   |X coordinate of click}}
   {{sdk attribute row|float |click_hit_y   |Y coordinate of click}}
   {{sdk attribute row|float|click_hit_y   |Y coordinate of click}}
   {{sdk attribute row|float |click_hit_z   |Z coordinate of click}}
   {{sdk attribute row|float|click_hit_z   |Z coordinate of click}}
|behavior=
|behavior=
* This event is sent regardless of the receiver's distance relative to the clicked avatar or the clicker (i.e. global)
* This event is sent regardless of the receiver's distance relative to the clicked avatar or the clicker (i.e. global)

Latest revision as of 05:24, 26 August 2013

Event set and handler snippet

vp_event_set(instance, VP_EVENT_AVATAR_CLICK, event_avatar_click);

void event_avatar_click(VPInstance instance) { }

Received when an avatar is clicked by a client in the current world.

Attributes

Attribute Usage
VP_AVATAR_SESSION Session ID of avatar's clicker
VP_CLICKED_SESSION Session ID of the clicked avatar
VP_CLICK_HIT_X X coordinate of click
VP_CLICK_HIT_Y Y coordinate of click
VP_CLICK_HIT_Z Z coordinate of click

Behavior

  • This event is sent regardless of the receiver's distance relative to the clicked avatar or the clicker (i.e. global)

Examples

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