ACE3/docs/wiki/framework/sitting-framework.md
jonpas 1df3a73461 Add version information to most wiki feature and framework pages (#4303)
* Update documentation guidelines

* Add version info part 1

* Add version info part 2

* Add removed in version to frontmatter and tag testmissions as removed

* Add version info part 3
2016-08-30 15:49:04 +02:00

39 lines
1.1 KiB
Markdown

---
layout: wiki
title: Sitting Framework
description: Explains how to set-up sitting objects (eg. chairs) with ACE3 sitting system.
group: framework
order: 5
parent: wiki
mod: ace
version:
major: 3
minor: 2
patch: 0
---
<div class="panel callout">
<h5>Note:</h5>
<p>ACE3 Sitting has been deprecated in favour of ACEX Sitting and will be removed in a future version.</p>
</div>
## 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 {
ace_sitting_canSit = 1; // Enable sitting
ace_sitting_sitDirection = 180; // Direction relative to object
ace_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)
};
};
```