local pTOTAL = 1000 -- total points
local RANDOM = true
local CAMS = {
ShowStage = "1A",
DiningArea = "1B",
PiratesCove = "1C",
WestHall = "2A",
WestCorner = "2B",
StorageCloset = "3",
EastHall = "4A",
EastCorner = "4B",
BackStage = "5",
Kitchen = "6",
Bathrooms = "7",
}
local initCAM_INDEX
local initCAM_KEY
local iSTATS = {
estDOOR = {
},
wstDOOR = {
},
estLIGHT = {
},
wstLIGHT = {
},
CAM = {
Uses = math.random(1, 210),
isActive = false,
CUR = initCAM_KEY,
},
ACTIVE = nil
}
local function ConvertToArray(DIR)
local ARRAY = {}
for i, v in next, DIR do
ARRAY[#ARRAY + 1] = v
end
return ARRAY
end
local conversion = ConvertToArray(iSTATS.CAM)
if RANDOM then
initCAM_INDEX = math.random(1, #conversion)
initCAM_KEY = conversion[initCAM_INDEX]
else
initCAM_KEY = ShowStage
end
print("CurrentCamera:", conversion)
To embed this project on your website, copy the following code and paste it into your website's HTML: