class Gadget
- supers: Callins, UnsyncedCallins, SyncedCallins
Gadgets can control game logic and receive synced and unsynced callins.
Attention: Callins from SyncedCallins
will only work on the unsynced portion of the gadget.
Attention: To prevent complaints from Lua Language Server, e.g.
Duplicate field `CommandNotify` (duplicate-set-field)
Add this line at the top of your gadget script:
local gadget = gadget ---@type Gadget