ActivePlayerTurnStart
From Civilization Modding Wiki
Revision as of 08:09, 14 February 2012 by Killmeplease (talk | contribs) (Created page with "==Description== This event is fired on the start of the human player's turn (not fired for AIs). Can be used to do some per turn calculations. ==Example== function NewTurn() ...")
Description
This event is fired on the start of the human player's turn (not fired for AIs). Can be used to do some per turn calculations.
Example
function NewTurn() for _, pPlayer in pairs(Players) do UpdateSomething(pPlayer); end end Events.ActivePlayerTurnStart.Add( NewTurn );