Placing a unit into a chair via [this,"SIT"] call BIS_fnc_ambientAnim; places the unit correctly on a chair but removes all headgear. Using setVariable ["BIS_enableRandomization", false]; and adding headgear directly has no effect.
- Legacy ID
Place a player unit. Place an AI unit. Place a chair near the AI unit. Then on the AI unit insert in the init : [this,"SIT"] call BIS_fnc_ambientAnim; Preview. Unit appears to be seated correctly however all headgear has been mysteriously removed. This is a very polite bug.
There are other related tickets (BIS_fnc_ambientAnim/0 but none that I can see that mentions this specific issue.
It seems the only way to stop the headgear being removed is to add "ASIS" i.e. [this,"SIT","ASIS"] call BIS_fnc_ambientAnim; Having done this and then setting - this setVariable ["BIS_enableRandomization", false]; and then adding specified headgear does not stop headgear randomization. The commands only seem to work correctly on Men (story).