acemod / ACE3

Open-source realism mod for Arma 3
https://ace3.acemod.org
Other
1k stars 736 forks source link

Safemode: Calling fnc_setWeaponSafety causes weapon switch #10392

Closed Cyruz143 closed 2 weeks ago

Cyruz143 commented 2 weeks ago

Mods (complete and add to the following information):

Description: When using the pub fnc ace_safemode_fnc_setWeaponSafety sometimes the unit switches weapon.

Steps to reproduce: _Follow this flowchart!_

  1. Have primary weapon and pistol.
  2. Set safety on {[ACE_player, _x, true] call ace_safemode_fnc_setWeaponSafety} forEach (weapons player);.
  3. Unit switches to pistol.

Same in reverse.

  1. Have primary weapon and pistol and safety already on.
  2. Set safety off {[ACE_player, _x, false] call ace_safemode_fnc_setWeaponSafety} forEach (weapons player);.
  3. Unit switches to pistol.

Expected behavior: Not switching weapon

Where did the issue occur? Editor (Singleplayer)