Documentation - Merge ACEX (#8526)

* Documentation - Merge ACEX

* Only show ACEX prefix note on framework pages

* Documentation - Use ACEX prefix in Fortify events
See #8553

* Cleanup acex from config.yml

* English is weird

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
jonpas
2021-10-21 18:27:25 +02:00
committed by GitHub
parent ca09b88869
commit c29ae977fc
28 changed files with 60 additions and 271 deletions

View File

@ -0,0 +1,34 @@
---
layout: wiki
title: Sitting Framework
description: Explains how to set-up sitting objects (eg. chairs) with ACE sitting system.
group: framework
order: 5
parent: wiki
mod: acex
version:
major: 3
minor: 2
patch: 0
redirect_from: "/wiki/frameworkx/sitting-framework.md"
---
## 1. Requirements
Object must inherit from `ThingX` or any of its sub-classes.
Object must have Extended Event Handler (XEH) enabled (this is not the case for the majority of vanilla objects in `ThingX` class), configuration entry on how to do that is shown below.
## 2. Config Values
```cpp
class CfgVehicles {
class MyChair {
acex_sitting_canSit = 1; // Enable sitting
acex_sitting_sitDirection = 180; // Direction relative to object
acex_sitting_sitPosition[] = {0, -0.1, -0.45}; // Position relative to object (may behave weird with certain objects)
XEH_ENABLED; // Enable XEH (only necessary if XEH is not yet enabled for this class or the one this inherits from)
};
};
```