-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
50 lines (46 loc) · 1.91 KB
/
Copy pathconfig.lua
File metadata and controls
50 lines (46 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
logger = Logger.new("Fleet-Sync")
Config = {
--[[
The amount of time in ms that a car must be still for
before it tries to sync or register as a commander
]]
IdleTimeRequired = 5000,
--[[
The radius around the commander vehicle inside which
other vehicles are looked for
]]
CommanderRadius = 35.0,
--[[
The different fleets which define syncable vehicles.
]]
VehicleFleets = {
["EXAMPLE_1"] = { -- The name of the fleet, must be unique
copyExtras = false, -- If vehicles should attempt to copy extras from the commander
lightingExtras = {}, -- The extra config, leave as '{}' when 'copyExtras' is false
vehicles = { -- The list of vehicle models which can sync with eachother
"nklspd1",
"nklspd2",
}
},
["EXAMPLE_2"] = {
copyExtras = true,
lightingExtras = {
["LIGHT_NAME_1"] = { -- Plain text name for the lighting component, must be unique to this fleet
["carA"] = { extra = 1 }, -- What extra on 'carA' controls 'LIGHT_NAME_1'
["carB"] = { extra = 1 }, -- What extra on 'carB' controls 'LIGHT_NAME_1'
["carC"] = { extra = 6 }, -- What extra on 'carC' controls 'LIGHT_NAME_1'
},
["LIGHT_NAME_2"] = { -- Plain text name for the lighting component, must be unique to this fleet
["carA"] = { extra = 3 }, -- What extra on 'carA' controls 'LIGHT_NAME_2'
["carB"] = { extra = 2 }, -- What extra on 'carB' controls 'LIGHT_NAME_2'
["carC"] = { extra = 1 }, -- What extra on 'carC' controls 'LIGHT_NAME_2'
}
},
vehicles = {
"carA",
"carB",
"carC",
}
},
}
}