Page 1 of 1

event after deploy

Posted: Tue May 14, 2013 11:31 am
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".

Re: event after deploy

Posted: Tue May 14, 2013 3:39 pm
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.