LeeS
Imperator
are GameEvents valid anymore in civ6?
everything I've seen in the Firaxis lua is Events or LuaEvents.
The only place I even find GameEvents is in C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization VI\Base\Assets\UI\Tuner\AI_Diplomacy.lua and it's questionable whether the file is even used given these entire contents:
everything I've seen in the Firaxis lua is Events or LuaEvents.
The only place I even find GameEvents is in C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization VI\Base\Assets\UI\Tuner\AI_Diplomacy.lua and it's questionable whether the file is even used given these entire contents:
Code:
GameEvents.DiploSurpriseDeclareWar.Add(function( mainPlayer, opponentPlayer )
-- local player = Players[mainPlayer];
-- if ( player ~= nil ) then
-- Print(player);
-- local ai = player:GetAi_Military();
-- Print(ai);
-- ai:PrepareForWarWith(opponentPlayer);
-- if ( ai:HasOperationAgainst( opponentPlayer, true ) ) then
-- return true;
-- end
-- end
return false;
end );