2016-09-12 17:16:37 +00:00
---
layout: wiki
title: Cook Off Framework
description: Explains the Cook off system for developers & mission makers.
group: framework
order: 5
parent: wiki
mod: ace
version:
major: 3
minor: 7
patch: 0
---
2024-01-27 08:14:10 +00:00
## 1. Disabling cook-off for individual vehicles
2016-09-12 17:16:37 +00:00
2024-01-27 08:14:10 +00:00
Cook-off can be disabled for a specific vehicle. "Cook-off" refers to the fire effects (visual & sounds) that happen when a vehicle is cooking off:
2016-09-12 17:16:37 +00:00
```
2024-01-27 08:14:10 +00:00
_vehicle setVariable ["ace_cookoff_enable", false, true];
2016-09-12 17:16:37 +00:00
```
2024-01-27 08:14:10 +00:00
Mission settings will always apply however, so you can't enable cook-off on a vehicle if the mission settings have cook-off for vehicles disabled.
2016-09-12 17:16:37 +00:00
2024-01-27 08:14:10 +00:00
## 2. Disabling ammunition cook-off for individual vehicles and boxes
2016-09-12 17:16:37 +00:00
2024-01-27 08:14:10 +00:00
Ammunition cook-off can be disabled for a specific vehicle or box. "Ammunition cook-off" refers to the ammunition exploding in a burning vehicle:
2017-11-30 22:54:47 +00:00
```
2024-01-27 08:14:10 +00:00
_vehicleOrBox setVariable ["ace_cookoff_enableAmmoCookoff", false, true];
2017-11-30 22:54:47 +00:00
```
2024-01-27 08:14:10 +00:00
Mission settings will always apply however, so you can't enable ammunition cook-off on a vehicle or box if the mission settings have ammunition cook-off disabled.