SCED/objects/PlayermatClickInterceptor.3dbe55.ttslua

16 lines
326 B
Plaintext
Raw Normal View History

local interactable = false
function onSave() return JSON.encode(interactable) end
function onLoad(savedData)
if savedData and savedData ~= "" then
2023-12-18 18:50:21 -05:00
interactable = JSON.decode(savedData)
end
self.interactable = interactable
end
function setState(state)
interactable = state
self.interactable = interactable
end