Reply To: NodeCanvas and UNet

NodeCanvas Forums General Discussion NodeCanvas and UNet Reply To: NodeCanvas and UNet

#12501
Gavalakis
Keymaster

Hello,

Sorry for the late reply.

Just to clarify, the documentation relevant to UNET refers to the ability of Blackboard Variables to sync through the network, by using the SyncBlackboard component 🙂

For what you are after, I think a good solution would be to create a custom NetworkBehaviour script, attach it to the same gameobject that the BehaviourTreeOwner is attached to and use the NetworkBehaviour API like ‘isServer’ for example, to act accordingly, like in your example case, stop the behaviour by calling GetComponent<BehaviourTreeOwner>().StopBehaviour().

Please let me know if that works for you.
Thanks!

Join us on Discord: https://discord.gg/97q2Rjh