Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safemode: Calling fnc_setWeaponSafety causes weapon switch #10392

Closed
Cyruz143 opened this issue Oct 11, 2024 · 0 comments · Fixed by #10406
Closed

Safemode: Calling fnc_setWeaponSafety causes weapon switch #10392

Cyruz143 opened this issue Oct 11, 2024 · 0 comments · Fixed by #10406
Labels
Milestone

Comments

@Cyruz143
Copy link
Contributor

Mods (complete and add to the following information):

  • Arma 3: 2.18 [e.g. 1.00 stable, rc, dev]
  • CBA: 3.18 [e.g. 3.0.0 stable, commit hash]
  • ACE3: 3.18 [e.g. 3.0.0 stable, commit hash]

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants