event after deploy

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

event after deploy

Post by enric »

FUNCTION StartTurn(side)
{
Log ("turn", GetTurn());
}

In a scenario with deployment I got

turn -1
turn 0

and then BA is in deployment mode.
Quit the deploy phase pushing END TURN, but got nothing.
So it is still turn 0, is there a way to catch the event generated by the END TURN in that situation?

Also tried

if ( GetTurn() == 0)
{
if (IsDeploying() == 1)
{
Log ("isdeploy", GetTurn());
}
else
{
Log ("else", GetTurn());
}

}

But never happens the "else".
AndrewGardner
Slitherine
Slitherine
Posts: 535
Joined: Tue Nov 13, 2012 6:24 pm

Re: event after deploy

Post by AndrewGardner »

I don't see an event that covers that situation. You should be able to add some logic to your Tick function to watch for the first tick where IsDeploying() == 1.
Post Reply

Return to “Battle Academy : Modders Corner ”