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

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

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

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

Post 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()
Post Reply

Return to “Lua Scripts”