Interaction between ScriptObject and geme's core script

In Ninja Snow core script, checks in every frame if player node is still here, to know when player is dead. to ask for restart.

Let’s say, I want to add some more complex interaction between player, or other objects and core script. Can I access core script’s variables or functions? Is there any message system or custom events? What is the neat way of doing it?

Yes, you can define custom events. The SceneReplication sample (nr. 17) has a custom ClientObjectID event.

I think the reason NinjaSnowWar checks every frame is to keep the code simple while focusing on scene replication. You could add custom events and/or statemachines for this purpose.

1 Like