I'm trying to add darkness and lights to my level the scripting way. However I get an error where I'm almost certain it's not my fault.
Maybe you guys can find a mistake in the following code but I think it might be a smbx bug.
Code:
Code: Select all
local darknessField = darkness.Create{
falloff = darkness.falloff.DEFAULT,
shadows = darkness.shadow.DEFAULT,
maxLights = 60,
uniforms = {},
priorityType = darkness.priority.DISTANCE,
bounds = nil,
boundblendLength = 64,
section = -1,
shader = Shader(),
ambient = baseambient,
priority = 0,
distanceField = false,
enabled = true
}
