Add a method to call when an action gets unlocked via :unlockAction().
Add a method to call when an action gets unlocked via :unlockAction().
1 string id
.the action to add the callback for.
2 function callback
the function to call when an action gets unlocked.
-- taken from game/interaction_restrictor_register.lua interactionRestrictor:addUnlockCallback("contract_work", function() contractWork:unlock() end)