As the Title specifies, what are all the Beyond Earth Lua events? Specifically, is there a way to trigger when an orbital unit is launched and when it is removed or destroyed? I have been using the CIV5 infos successfully for many things, but obviously orbital units break new ground.
Also, I have been wondering the following for a while: How do we get all of the methods/properties of an instance.
Given the above code as an example, how can I iterate through all of pUnit's methods and print them to firetuner?
Also, I have been wondering the following for a while: How do we get all of the methods/properties of an instance.
Code:
function OnUnitCreated( playerID, unitID, hexVec, unitType, cultureType, civID, primaryColor, secondaryColor, fogState, selected, military, notInvisible )
pPlayer = Players[playerID];
local pUnit = pPlayer:GetUnitByID(unitID);
if (pUnit:IsOrbitalUnit()) then
print( " Unit Created: " .. tostring( playerID ) .. " " .. tostring( unitID ) .. " " .. fogState );
print( " Unit Name: " .. pUnit:GetName());
end
end
Events.SerialEventUnitCreated.Add( OnUnitCreated );
Given the above code as an example, how can I iterate through all of pUnit's methods and print them to firetuner?