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

Muzzle player event handler not returning documented returns #1363

Closed
LorenLuke opened this issue Aug 21, 2020 · 1 comment · Fixed by #1504
Closed

Muzzle player event handler not returning documented returns #1363

LorenLuke opened this issue Aug 21, 2020 · 1 comment · Fixed by #1504
Labels
Milestone

Comments

@LorenLuke
Copy link
Contributor

LorenLuke commented Aug 21, 2020

Mods (complete and add to the following information):

  • Arma 3: 1.98.146373
  • CBA: v3.15.1 (workshop version as of 8/21/2020)

Description:
Muzzle player event handler not returning documented returns

Steps to reproduce:

  • place the following code in your player unit:
    params ["_unit", "_newMuzzle", "_oldMuzzle"]; 
    systemChat format ["%1", _this]; 
}, true] call CBA_fnc_addPlayerEventHandler;
  • Run scenario and change weapon
  • See that the first parameter is, in fact, not the unit

Expected behavior:
Expected returns to be as documented under the 'muzzle' entry;

Where did the issue occur?

  • Editor (Singleplayer)

Log Files:

  • None

Additional context:

  • N/A

Screenshots:
image
image
image

@LorenLuke LorenLuke added the Bug label Aug 21, 2020
@Ansible2
Copy link

Ansible2 commented Oct 9, 2020

[QGVAR(muzzleEvent), [_newMuzzle select 2, GVAR(oldMuzzle) select 2]] call CBA_fnc_localEvent;

Just missing _unit from here.

[QGVAR(muzzleEvent), [_unit, _newMuzzle select 2, GVAR(oldMuzzle) select 2]] call CBA_fnc_localEvent;

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