ActivePlayerTurnStart: Difference between revisions
From Civilization Modding Wiki
Jump to navigationJump to search
Killmeplease (talk | contribs) |
Killmeplease (talk | contribs) |
||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
This event is fired on the start of the human player's turn (not fired for AIs). | This event is fired on the start of the human [[Lua Game Objects/Player|player]]'s turn (not fired for AIs). | ||
Can be used to do some per turn calculations. | Can be used to do some per turn calculations. | ||
Revision as of 08:13, 14 February 2012
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 --loop through all players UpdateSomething(pPlayer); end end Events.ActivePlayerTurnStart.Add( NewTurn );