mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
f1ca76669f
* Added featurex documentation for fortify. * Updated to correct version. * Correct version (3.3.0) Not released yet. Will be released in 3.3.0. * Grammar and phrasing fix. * Updated dependencies. changed dependencies_list to dependenciesx_list. Also switched out components to "acex_fortify". * Removed acex_ before component. * Fixed syntax. * Added fortify-framework.md. Redirect sitting.md from framework to frameworkx. * Minor syntax fixes to fortify-framework.md and fortify.md. Deleted old sitting-framework.md * Corrected header numbering. * Added fortify to dependenciesx_list.md * Fixed syntax errors. Added func. args. for adding custom presets. * Minor fix to args. * Fixed fnc. args. * Removed public part. * Removed public part. * Finalizing fortify-framework.md. Removed outdated note from sitting-framework.md.
38 lines
1.0 KiB
Markdown
38 lines
1.0 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
|
|
redirect_from: "/wiki/framework/sitting-framework.md"
|
|
---
|
|
|
|
_Sitting has been moved from ACE3 (in v3.8.0) to ACEX._
|
|
|
|
|
|
## 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)
|
|
};
|
|
};
|
|
```
|