VP_EVENT_WORLD_SETTING
Event set and handler snippet
vp_event_set(instance, VP_EVENT_WORLD_SETTING, event_world_setting);
void event_world_setting(VPInstance instance) { }
Received for each setting of a world upon connecting to it.
Attributes
Attribute | Usage | |
---|---|---|
VP_WORLD_SETTING_KEY | Setting key | |
VP_WORLD_SETTING_VALUE | Setting value |
Behavior
- When all settings have been sent,
VP_EVENT_WORLD_SETTINGS_CHANGED
is fired
Caveats
- Because these settings are always sent upon entering a world, it is recommended to register for this event before calling
vp_enter()
. Otherwise, some or all settings may be missed. - There is currently no method to force a resend or watch for settings changes, except by re-entering the world
Examples
- This event has no usage examples; please add at least one to this page