diff --git a/Engima/Traffic/ConfigAndStart.sqf b/Engima/Traffic/ConfigAndStart.sqf index f86892a9..d1c4c8ef 100644 --- a/Engima/Traffic/ConfigAndStart.sqf +++ b/Engima/Traffic/ConfigAndStart.sqf @@ -69,12 +69,8 @@ _parameters = [ ["MAX_SPAWN_DISTANCE", 2500], ["MIN_SKILL", 0.1], ["MAX_SKILL", 0.1], - ["DEBUG", true], - ["ON_SPAWN_CALLBACK",{ - { - [_x] call randomCivilian; - } forEach crew (_this select 0); - }]; + ["DEBUG", false] + ]; ]; // Start an instance of the traffic diff --git a/Engima/Traffic/Server/Functions.sqf b/Engima/Traffic/Server/Functions.sqf index 9be5616a..5d2c19c1 100644 --- a/Engima/Traffic/Server/Functions.sqf +++ b/Engima/Traffic/Server/Functions.sqf @@ -412,6 +412,11 @@ ENGIMA_TRAFFIC_StartTraffic = { _vehicle = _result select 0; _vehiclesCrew = _result select 1; _vehiclesGroup = _result select 2; + + { + [_x] call randomCivilian; + } forEach _vehiclesCrew; + // Name vehicle sleep random 0.1;