I'm trying to spawn a combatant from script at the start of a battle.
In the Battle Start Event of that battle, I use a Call Function node to call the script that will spawn the combatant.https://imgur.com/pgV8zbQ
The script is attached to the player prefab.
The code I used to spawn a Combatant
public void startBossFight(int max)
Combatant newCombatant = ORK.Combatants.Create(12, ORK.Game.ActiveGroup, true, true);
The compiler doesn't give any error, but when I start the battle, I get the following error in the console, and the script doesn't spawn combatants.https://imgur.com/R2352cK
The Debug.Log statement doesn't print anything to the console either, so I don't think anything inside of the function is executed at all.