Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

addRestrictCallback

Description

Add a method to call when an action gets restricted via :restrictAction().

Arguments

1 string id

the action to add a callback for.

2 function callback

the function to call upon restriction.

Example

interactionRestrictor:addRestrictCallback("contract_work", function()
	contractWork:lock()
end)