General Tso
Panzer General
I've made event handlers in Lua before and I usually do something like this:
For some reason I can't get the above code to work.
It appears that the SerialEventDawnOfManShow event is triggered in UI\FrontEnd\LoadScreen. I added that file to my mod and ran some tests. The event is being triggered but my handler is never called. Any ideas?
Code:
function OnDawnOfManShow(civID)
print("OnDawnOfManShow!");
end
Events.SerialEventDawnOfManShow.Add(OnDawnOfManShow);
For some reason I can't get the above code to work.
It appears that the SerialEventDawnOfManShow event is triggered in UI\FrontEnd\LoadScreen. I added that file to my mod and ran some tests. The event is being triggered but my handler is never called. Any ideas?