• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

LUA Events

thanks for explanation

also i've found that ActivePlayerTurnStart event gets fired only for human players as anything inside a
Code:
	if (not Players[Game.GetActivePlayer()]:IsHuman()) then
		...
	end;
closure has no effect.

Does any one know whether ActivePlayerTurnEnd runs for every player, or is it also human player only?
 
Human only. In Firaxis lingo, ActivePlayer is a key word for the human player on the local machine. ;)
 
CvPreGame::CustomOption::CustomOption(CustomOption::CustomOption const &)
CvUnit::getUnitType(void)

So one thing I've noticed is that calling some of these functions from lua requires a change in the function name case.

For example, to call getUnitType from lua, you have to call GetUnitType() instead.
 
Back
Top Bottom