Re: Announcement: game end condition moved to Lua
Posted: 12 Dec 2011, 15:55
I think the problem is that you spawn the units when gadget:Initialize is called.
If your spawn gadget is loaded (=initialized) before the game-end gadget, it will never receive the UnitCreated events - it does not yet exist at that point.
Try spawning your units at GameStart(), GamePreload() or via Update() after all gadgets are loaded.
If your spawn gadget is loaded (=initialized) before the game-end gadget, it will never receive the UnitCreated events - it does not yet exist at that point.
Try spawning your units at GameStart(), GamePreload() or via Update() after all gadgets are loaded.