ace_captives: AI placed in editor cannot be setHandcuffed on Dedicated.
Arma 3 Version: 1.56.134627 (stable)
CBA Version: 2.3.1 (stable)
ACE3 Version: 3.5.0 (stable)
Mods:
@CBA_A3@ace
Description:
- setHandcuffed module, checkbox, and init code (
[this,true] call ace_captives_fnc_setHandcuffed) do not set a unit to be handcuffed in multiplayer. Dropping "Toggle Captive" module on units via Zeus does not cause them to become handcuffed. Executingace_captive_fnc_setHandcuffedon a unit via console, even globally, does not cause the unit to become handcuffed. Unit also cannot be arrested with a cable tie, though the option does show up and one is removed (_unit getVariable ["ace_captives_isHandcuffed",false]returnsfalse). - A unit spawned via Zeus can be handcuffed via script or Zeus module.
Steps to reproduce:
- Example PBO Attached. Requires Dedicated environment.
- Place unit.
- Set Handcuffed via checkbox attribute, synced module, or init code
- View unit in dedicated multiplayer. Unit is not handcuffed. Unit cannot be handcuffed.
Where did the issue occur?
- Dedicated (AI on Server)
Placed Modules:
- Add the list of modules you have placed on the map. Use 'None' if the error occurs without any modules.
RPT log file:
Not an expert, but if it helps someone with the tool set fix it, here's what I found:
My best guess is that the code block here is after a if (!hasInterface) exitWith {}; on line 31, therefore causing ace_captives_captivityEnabled to never be set to true on the server.
So unfortunate, my clan had an OP for tonight that needs this feature :(
The dedicated AI is also broken if spawned in via a script. whether it be on init, initserver, or a custom one. e.g.
_civ = creategroup EAST;
prisoner = _civ createunit ["C_man_polo_1_F", getmarkerpos rendevouz, [], 0, "CAN COLLIDE"];
prisoner setbehaviour "CARELESS";
prisoner allowdamage false;
[prisoner, true] call ACE_captives_fnc_setHandcuffed;
@Theowningone, I think you're right, that's most likely the cause.