ACE3/docs/wiki/framework/parachute-framework.md
JoramD 60cab0af6b
Parachute - Add failure chance (#8226)
* Initial push

* disable forgotten define

* Improve exitWith check

* Requested/suggested changes

* Requested changes

* Requested changes
2021-04-30 22:48:02 -05:00

37 lines
796 B
Markdown

---
layout: wiki
title: Parachute Framework
description: Explains how to set-up a parachute with ACE3 parachute system.
group: framework
order: 5
parent: wiki
mod: ace
version:
major: 3
minor: 2
patch: 0
---
## 1. Adding reserve parachute to existing parachute
```cpp
class CfgVehicles {
class ParachuteBase;
class BananaParachute: ParachuteBase {
ace_hasReserveParachute = 1; // Add reserve parachute (1-enabled, 0-disabled)
ace_reserveParachute = "ACE_ReserveParachute"; // Classname of the reserve parachute
};
};
```
## 2. Adding failure cut delay
```cpp
class CfgVehicles {
class ParachuteBase;
class BananaParachute: ParachuteBase {
ace_parachute_failureDelay = 2; // Add delay before parachute fails (time in seconds)
};
};
```