Page 1 of 1

RemoveGadget() in GameStart() also removes another gadget!

Posted: 26 Oct 2008, 18:51
by zwzsg
For some reasons, when my \LuaRules\Gadgets\KPAI30.lua execute gadgetHandler:RemoveGadget() at GameStart() stage, it also kills my \LuaRules\Gadgets\KPAI31.lua gadget. But when I move the gadgetHandler:RemoveGadget() to GameFrame stage, then it works well and kills only the gadget executing it.

Edit: Yes, they have different names in the gadget:GetInfo()