beeeen
beeeen3w ago

Allow custom RealtimeComponents to write to the model even when they're not the owner

Sometimes I would like to have realtime components that can be written to, no matter which client ownes it. For instance, the health component of a destructible crate. I'd love for every client to be able to shoot it without needing to switch between clients. The current work around we have is to always clear the ownership of the root view and have an "ownership" view for the rest of the components that require ownership. This works but it's very awkward. If there were some boolean of some sort that we could enable/disable in realtime components, that would be heavenly!
2 Replies
maxweisel
maxweisel3w ago
as in you want some child components to be able to override parent RealtimeView ownership settings?
Mechabit
Mechabit3w ago
you can just leave the crate root view unowned, if you want to move the crate you only need to own the RealtimeTransform component

Did you find this page helpful?