Add cookoff documentation

This commit is contained in:
Glowbal 2016-09-12 19:16:37 +02:00
parent 48a198fea4
commit 5134c16dd0

View File

@ -0,0 +1,29 @@
---
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
---
## 1. Disabling / Enabling Cook off for individual vehicles
You can dynamically enable and/or disable vehicle cook off for individual vehicles by using `setVariable`:
```
VEHICLE setVariable ["ace_cookoff_enable", true, true];
```
The above will enable cook off for that specific vehicle, no matter the mission settings.
Likewise, cook off can also be disabled for a specific vehicle:
```
VEHICLE setVariable ["ace_cookoff_enable", false, true];
```