Hey again. I am working on creating a function that will replace Ork Framework's "Player Grid Placement" event step at the start of grid battles. My end goal is for this function be called in my "gridBattleStartEvent" Event, find the nearest grid cell to the player, and place the player's combatant in that grid cell.
So far I have been able to find the objects for the "leader" combatant, BattleGridComponent, and the GridCells. However, when I add the combatant to one of the grid cells he does not seem to appear when the battle starts. Are there any additional steps I am missing for adding a character to a battle?
public void PlaceCombatantsOnGrid ()
List<Combatant> playerBattleGroup = new List<Combatant>();
ORK.Game.ActiveGroup.GetMembers(MenuCombatantScope.Battle, ref playerBattleGroup);
BattleGridComponent gridBattle = ORK.Battle.BattleArena.gridObject;
foreach (Combatant combatant in playerBattleGroup)
This is my first real attempt at scripting in ORK, so I am making a few assumptions. Such as that "ORK.Battle.BattleArena.gridObject" will give me the actual grid object of the current active battle.