SCED/objects/PlayermatClickInterceptor.3dbe55.ttslua

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.encode(savedData)
end
self.interactable = interactable
end
function setState(state)
interactable = state
self.interactable = interactable
end