-
Notifications
You must be signed in to change notification settings - Fork 2
Degraded Vehicle
Mike-MF edited this page Jul 19, 2026
·
1 revision
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.
Pages
- Home
- Your First Mission
- Creating A Mission
- Contract Missions
- Difficulty Guidelines
- Events
-
Functions Library
- Ambient Effects
- Battlefield Memorial
- Blacklist Headless
- Base Spectator
- Bomber
- Car Alarm
- Chemical Detector
- Collect Intel
- Connect Battery To Defusable
- Contamination Gas
- Count Alive
- Debug Trigger Area
- Degraded Vehicle
- Dialogue
- Disable AI
- Download Intel
- Earthquake
- Enable AI
- Force Shooting
- Ground Fog
- Hunt
- In Area
- In Area All
- Leaflet
- Lock Doors
- Mark Buildings
- Monitor Units
- Mortar Strike
- Paradrop
- Ping
- Players
- Reaction
- Reinforcements
- Reinforcement Waves
- Respirator Effects
- Set Sleeping
- Sound Source
- Surrender
- Switch Action
- Teleport
- Toggle Lights
- Helicopters
- Resources
- Quality Checklist
- Useful Commands
- ArmaQDL