Hi,
I'm making a PvP battle. I download the enemy battle group data from server and start an auto battle in client.
I have a battle component in scene and will start the battle in another scene.
Here is my code:
The code was called in Function node and runs without error message.
But when it runs to the end of the method, there is no battle started.
Alternatively, you can use a Start Battle node to start the battle.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Thanks for your reply.
I checked the ORK Handle script in Inspector while running and I'm sure the player control isn't blocked, but I still cannot start the battle by calling StartGroup.
If I use a Start Battle node, how can I set the enemy group to be the combatants downloaded from my server?
bc.StartEvent(ORK.Game.GetPlayer());
right after StartGroup I can start the battle now, the enemy group size is right,
but the combatants in enemy group are all the same combatant(the first combatant).Edit:
It works now. The problem caused by I didn't set the combatant ID correctly.