Today I did some more research on splitting player’s characters up in to two teams. After reading the Adapting Clean Engine article on the wiki, I learnt that there are multiple default Hero-Engine scripts that should be replaced with your own scripts. This is so that you can have your own custom behaviour for system nodes, which is important for our game.
Some of examples of the system nodes that are overridden in the tutorial are below:
For example, you can see that the $WORLD System Node has a default class called ‘HE_World’ and a default script for that class called ‘HE_WorldClassMethods’. They then have created a class called ‘GameIDWorld’ where GameID should just be a prefix you want to use for your game. Then the methods attached to that class will be in ‘GameIDWorldClassMethods’. These methods will extend/override the methods found in ‘HE_WorldClassMethods’ and implement custom behaviour for event callbacks for the World Server.
This is just one of many different classes that can be overridden to implement custom behaviour in Hero Engine.