Degraded Vehicle - Theseus-Aegis/MissionTemplate GitHub Wiki
This page will explain the usage of the Degraded Vehicle function.
/*
* Author: Mike
* Simulates the vehicle being degraded by failing to start or breaking down at certain speeds.
* Must use a vehicle classname, not a vehicle variable name.
* Damage values should range from 0.1 to 1
* This should not be stacked for multiple types of vehicles.
*
* Call from init.sqf
*
* Arguments
* 0: Vehicle Classname <CLASSNAME/STRING>
* 1: Speed to break <NUMBER> (default: 50)
* 2: Damage from Speed <NUMBER> (default: 0.1)
*
* Return Value:
* None
*
* Example:
* ["C_Truck_02_covered_F", 40, 0.15] call MFUNC(degradedVehicle)
*/This function will simulate a broken vehicle by having it break down periodically if a certain speed threshold is hit, it will also begin to damage the engine if you maintain speed over the threshold.
["C_Truck_02_covered_F", 40, 0.15] call MFUNC(degradedVehicle)This will damage this truck 0.15 points of damage if you go above 40.