kellerkompanie / kellerkompanie-mods

This project contains modifications for the Arma 3 game, custom tailored towards the needs of the Kellerkompanie community (https://kellerkompanie.com/). Not all parts are self-written. Where indicated the content does not belong to us, but rather to the original authors. The rest may be used by anyone in any way.
MIT License
4 stars 1 forks source link

Improve 3den unit garrison #62

Closed Schwaggot closed 5 years ago

Schwaggot commented 5 years ago

Until now garrisoned units in the editor start moving again once mission started. Check if this is still the headless client provoking this and if so find a way to adjust it.

https://github.com/acemod/ACE3/blob/master/addons/ai/functions/fnc_garrison.sqf

https://github.com/acemod/ACE3/blob/master/addons/ai/functions/fnc_unGarrison.sqf

ACE ungarison does the following, maybe the reverse will keep them in place. Are these values maybe reset upon transferring to HC?

_unit enableAI "PATH";
_unit enableAI "FSM";
_unit setVariable [QGVAR(garrisonned), false, true];

Also check if ace_ai_fnc_garrison could be executed directly in 3den.