VP EVENT AVATAR CHANGE: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Roy Curtis (talk | contribs)
Created page with "{{sdk event page|avatar_change|This event is received when a client changes their position or type, typically through movement or teleportation within the Virtual Paradise cli..."
 
Roy Curtis (talk | contribs)
m avatar type
 
Line 2: Line 2:
|attributes=
|attributes=
   {{sdk attribute row|int  |avatar_session|Session ID of changing client}}
   {{sdk attribute row|int  |avatar_session|Session ID of changing client}}
   {{sdk attribute row|int  |avatar_type  |''Unknown''}}
   {{sdk attribute row|int  |avatar_type  |''Unused'' - Client's current avatar}}
   {{sdk attribute row|string|avatar_name  |Name of changing client}}
   {{sdk attribute row|string|avatar_name  |Name of changing client}}
   {{sdk attribute row|float |avatar_x      |Client's new X coordinate}}
   {{sdk attribute row|float |avatar_x      |Client's new X coordinate}}

Latest revision as of 19:35, 25 August 2013

Event set and handler snippet

vp_event_set(instance, VP_EVENT_AVATAR_CHANGE, event_avatar_change);

void event_avatar_change(VPInstance instance) { }

This event is received when a client changes their position or type, typically through movement or teleportation within the Virtual Paradise client.

Attributes

Attribute Usage
VP_AVATAR_SESSION Session ID of changing client
VP_AVATAR_TYPE Unused - Client's current avatar
VP_AVATAR_NAME Name of changing client
VP_AVATAR_X Client's new X coordinate
VP_AVATAR_Y Client's new Y coordinate
VP_AVATAR_Z Client's new Z coordinate
VP_AVATAR_PITCH Client's new pitch rotation
VP_AVATAR_YAW Client's new yaw rotation

Behavior

  • This event is always sent to all clients in the same world, regardless of the receiver's position relative to the source.

Examples

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