mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
90d63475d5
* Medical Treatment - Add preferred seats for loading patients * load patients in reverse order * add option for reverse fill * Update addons/medical_treatment/functions/fnc_loadUnit.sqf Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com> * Update docs/wiki/framework/medical-treatment-framework.md Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com>
41 lines
812 B
Markdown
41 lines
812 B
Markdown
---
|
|
layout: wiki
|
|
title: Medical Treatment Framework
|
|
description: Explains extending the treatment system for developers.
|
|
group: framework
|
|
order: 5
|
|
parent: wiki
|
|
mod: ace
|
|
version:
|
|
major: 3
|
|
minor: 14
|
|
patch: 2
|
|
---
|
|
|
|
## 1. Config Values
|
|
|
|
### 1.1 Vehicle Patient Seats
|
|
|
|
Defines the seats that will be prioritized when loading patients into vehicles. Uses `moveInCargo` indexes.
|
|
|
|
```cpp
|
|
class CfgVehicles {
|
|
class MyCar {
|
|
ace_medical_treatment_patientSeats[] = {3,4};
|
|
};
|
|
};
|
|
```
|
|
|
|
### 1.2 Patient Reverse Fill
|
|
|
|
When no patient seats are available, by default patients will be filled from the highest cargo index to the lowest.
|
|
This can be changed to fill from the lowest to the highest.
|
|
|
|
```cpp
|
|
class CfgVehicles {
|
|
class MyCar {
|
|
ace_medical_treatment_patientReverseFill = 0;
|
|
};
|
|
};
|
|
```
|