Currently RegisterNetSyncVariable functions working only on spawned objects.
But for a modding project, you want to create a system linked to map object with some netsyncvariables and it's currently not possible to do it.
This would lead to massive new stuff for custom maps or even in the current chernarus map.
- Create a custom sound on map object, like generator, and sound can be enabled or not from server-side directly
- Create a code lock linked to the door of a map object
Two workarounds exist :
- When object spawn at clientside, send a call from client -> server, and after server -> client with RPC
- Create an animation that's actually do anything, and just get state value of this animation to get the actual value. Because animation is synced