Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uninteractables = {"511f85", "361c1d"}
- function onload(save_state)
- for _, obj in pairs(uninteractables) do
- getObjectFromGUID(obj).interactable = false
- end
- end
- ---- If you want to have it as a TAG in description:
- function onload(save_state)
- for _, obj in pairs(getAllObjects()) do
- if obj.getDescription() == "uninteractable" then
- obj.interactable = false
- end
- end
- end
- -- Check if an object is fully loaded
- function checkLoaded(obj)
- if not obj.loading_custom and not obj.spawning then
- return true
- end
- return false
- end
- --print out a table. depth is not needed to be set or set to be 1
- function dump(o, depth)
- if depth == nil then depth = 1 end
- if type(o) == 'table' then
- local s = '\n{\n'
- for k, v in pairs(o) do
- if type(k) ~= 'number' then k = '"'..k..'"' end
- for i = 1, depth do
- s = s .. " "
- end
- s = s .. '['..k..'] = ' .. dump(v, depth + 1) .. '\n'
- end
- for i = 1, depth - 1 do
- s = s .. " "
- end
- return s .. '} '
- else
- return tostring(o)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement