SCED/objects/PlayermatClickInterceptor.3dbe55.ttslua
2023-12-19 00:50:21 +01:00

16 lines
326 B
Plaintext

local interactable = false
function onSave() return JSON.encode(interactable) end
function onLoad(savedData)
if savedData and savedData ~= "" then
interactable = JSON.decode(savedData)
end
self.interactable = interactable
end
function setState(state)
interactable = state
self.interactable = interactable
end