Announcement: game end condition moved to Lua - Page 2

Announcement: game end condition moved to Lua

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: Announcement: game end condition moved to Lua

Post by SirMaverick »

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.
Post Reply

Return to “Game Development”