SetEmitterProbeLength
DocsSetEmitterProbeLength(probeLength)Description
Allows StaticEmitter's without a linked entity to make use of environment features like occlusion and reverb even if they are located higher than 20.0 units above any static collision inside interiors.
This native allows you to extend the probe range up to 150.0 units.
Parameters
| Name | Type | Description |
|---|---|---|
probeLength | float | The desired probe length (20.0 - 150.0) |
Returns
voidThis native does not return a value.
Examples
Official
RegisterCommand("setEmitterProbeLength", function(src, args, raw)
local probeLength = (tonumber(args[1]) + 0.0)
print("Extending emitter probes to: ", probeLength)
SetEmitterProbeLength(probeLength)
end)
RegisterCommand("resetEmitterProbeLength", function()
print("Resetting emitter probes to default settings")
SetEmitterProbeLength(20.0)
end)