Config
Give your units real intersection priority in seconds!
// Config
Config = {}
-- Radius around the emergency vehicle to search for traffic lights (meters)
Config.SearchRadius = 60.0
-- How often to scan & apply overrides (ms)
Config.TickRate = 500
-- If true, vehicle must be class 18 (emergency). If false, any vehicle with siren on works.
Config.RequireEmergencyClass = false
-- Require siren to be on for Opticom to activate
Config.RequireSirenOn = true
-- Only scan for lights when this is true (you can later hook this to a keybind if wanted)
Config.AlwaysEnabled = true
-- Enable spammy debug logs in F8
Config.Debug = true
-- Front cone angle in degrees:
-- lights within this angle in FRONT of the vehicle go green,
-- everything else in radius goes red.
Config.FrontConeDegrees = 60.0
-- Traffic light prop model names we care about
Config.TrafficLightModels = {
"prop_traffic_01a",
"prop_traffic_01b",
"prop_traffic_01d",
"prop_traffic_02a",
"prop_traffic_03a",
"prop_traffic_03b",
"prop_traffic_lightset_01"
}
Last updated