gms_settings_declare_syncable_object

Usage: gms_settings_declare_syncable_object ( object_index )

Description

This script must be called before gms_settings. It must be called exactly once for each object that might be used in a call to gms_instance_sync.

The extension will now refuse to sync objects that have not been declared with this method. If you do not call this script for all objects that will be synced, you might notice that they don't appear on other clients. In such a case, calling this function with the object as the first argument might fix this.

Example

gms_settings_declare_syncable_object(obj_bullet)
gms_settings_declare_syncable_object(obj_npc)
gms_settings(...)

Replies (0)

Last message on 13 Jul 2020