Basic handling of civs driving cars.
As a user, see transit and voyage modules to actually get civs driving on the streets.
Attribute | Default Value | Explanation |
---|---|---|
animalTransportChance | 0.4 | Probability that a suitable vehicle will carry some animals as cargo. |
animalTransportVehicles | [] | optional list of class names whitelisting vehicles that are allowed to carry animals |
automaticVehicleGroupSize | 1 | Allow vehicles to be filled according to capacity, ignoring initialGroupSize (0,1). |
vehicles | ["C_Van_01_fuel_F", "C_Hatchback_01_F", "C_Offroad_02_unarmed_F", "C_Truck_02_fuel_F", "C_Truck_02_covered_F", "C_Offroad_01_F", "C_SUV_01_F", "C_Van_01_transport_F", "C_Van_01_box_F"] | All classnames of vehicles that civilians may drive. |
globalSpeedLimit | 50 | Speed limit for civilian vehicles in km/h |
townSpeedLimit | 30 | Speed limit for civilian vehicles in km/h while in the area of a city or village Location |
Sets all vehicles that civilians may drive. Overwrites value from CBA settings. Execute globally
private _vehicles = ["C_Van_01_Fuel_F"];
[_vehicles] call grad_civs_cars_fnc_setVehicles
Parameter | Explanation |
---|---|
vehicles | Array - All classnames of vehicles that civilians may drive. |
["grad_civs_cars_car_added", { params ["_vehicle"]; }] call CBA_fnc_addEventHandler;
["grad_civs_cars_vehKilled", { params ["_deathPos", "_killer", "_vehicle"]; }] call CBA_fnc_addEventHandler;
You may define speed limits by setting the grad_civs_cars_customSpeedLimits
array.
Each entry must be an array with two entries: a Location and a number (the speed limit in km/h).
This array must be local on the machines running the civs, i.e. server and/or headless clients.