ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

ace_captives: AI placed in editor cannot be setHandcuffed on Dedicated.

Open OriginalHoozin opened this issue 10 years ago • 3 comments

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. Executing ace_captive_fnc_setHandcuffed on 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] returns false).
  • A unit spawned via Zeus can be handcuffed via script or Zeus module.

Steps to reproduce:

  1. Place unit.
  2. Set Handcuffed via checkbox attribute, synced module, or init code
  3. 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:

OriginalHoozin avatar Mar 04 '16 04:03 OriginalHoozin

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.

Theowningone avatar Mar 04 '16 07:03 Theowningone

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;

danjoo4 avatar Mar 04 '16 08:03 danjoo4

@Theowningone, I think you're right, that's most likely the cause.

nicolasbadano avatar Mar 04 '16 12:03 nicolasbadano