onClientCustomObjectSpawning
Definition
-- @/lua/ge/extensions/core/audioRibbon.lua:682
-- Called once on level load.
local function onClientCustomObjectSpawning()
if not ribbons then
ribbons, ribbonNames = {}, {}
end
if #ribbons > 0 then
table.clear(ribbons)
table.clear(ribbonNames)
table.clear(nearList)
table.clear(farList)
sfxEmitters = { {}, {}, {}, {}, {} }
end
local levelName = getCurrentLevelIdentifier()
if levelName then
local filepath = "levels/" .. levelName .. "/dynamicAudioEmitters/" .. diskFileName
readRibbonsFromFile(filepath)
end
end
Callers