2016-08-18 16:37:38 +00:00
---
layout: wiki
title: Sitting Framework
2021-10-21 16:27:25 +00:00
description: Explains how to set-up sitting objects (eg. chairs) with ACE sitting system.
2017-11-11 12:03:04 +00:00
group: framework
2016-08-18 16:37:38 +00:00
order: 5
parent: wiki
2017-11-10 15:34:53 +00:00
mod: acex
2016-08-30 13:49:04 +00:00
version:
major: 3
minor: 2
patch: 0
2021-10-21 16:27:25 +00:00
redirect_from: "/wiki/frameworkx/sitting-framework.md"
2016-08-18 16:37:38 +00:00
---
## 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 {
2017-11-10 15:34:53 +00:00
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)
2016-08-18 16:37:38 +00:00
XEH_ENABLED; // Enable XEH (only necessary if XEH is not yet enabled for this class or the one this inherits from)
};
};
```