how to enable a gadget?

how to enable a gadget?

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

Moderator: Moderators

Post Reply
User avatar
Thor
NOTA Developer
Posts: 291
Joined: 05 Mar 2006, 10:26

how to enable a gadget?

Post by Thor »

I'm working on some multiplayer missions for nota. Each mission will be a different gadget in one mod mutator that will have all the missions. I want to have them all disabled by default, and choose which one to enable based on what the map is.

Disabling them seems easy enough, I just set enabled = false in the gadget:GetInfo function, and it seems to work.

My question is how to enable it. I haven't been able to find any examples or anything and searching the forums doesn't bring anything up about it either.
Post Reply

Return to “Lua Scripts”