ACE3/docs/wiki/framework/sitting-framework.md
Dart 8f84df77d0
Sitting - Add config overwrite for random animation pool (#10120)
* Add config property animation overwrite

* Update addons/sitting/functions/fnc_getRandomAnimation.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Fix header

* Update addons/sitting/functions/fnc_getRandomAnimation.sqf

* Update function call

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-07-18 16:53:34 -05:00

1.2 KiB

layout title description group order parent mod version redirect_from
wiki Sitting Framework Explains how to set-up sitting objects (eg. chairs) with ACE sitting system. framework 5 wiki acex
major minor patch
3 2 0
/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

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)
        acex_sitting_interactPosition[] = {0, -0.1, -0.45};
        ace_sitting_animations[] = {"ace_sitting_HubSittingChairA_idle1"}; // Overwrite random animation pool
        XEH_ENABLED;  // Enable XEH (only necessary if XEH is not yet enabled for this class or the one this inherits from)
    };
};