Jump to content

'End of Turn' trigger


FryWalker

Recommended Posts

Does anyone know what Function may be called at the end of a of a players turn?

 

I guess some Function must be called as the units a player controls will check for bleeding at the end of the turn (just before the next players turn).

 

Thanks guys :huh:

Link to comment
Share on other sites

  • 2 weeks later...

There's no function called at the end of a turn, but you can check for the very beginning of another players turn using OnStartTurn(playerID). So if you check for player 2's turn starting, then you know that player 1's turn has ended.

 

The thing to watch out for though is that this function is also called when a player starts an interrupt turn. It's a good idea to keep track of whose turn it is by tracking when all the players have had a turn. It's a bit tricky, but it's all there is ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...