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

ace_cargoUnload wrong _item value #8200

Closed
LupusTheCanine opened this issue Apr 7, 2021 · 1 comment · Fixed by #8203
Closed

ace_cargoUnload wrong _item value #8200

LupusTheCanine opened this issue Apr 7, 2021 · 1 comment · Fixed by #8203
Labels

Comments

@LupusTheCanine
Copy link
Contributor

Mods (complete and add to the following information):

  • Arma 3: irrelevant - ace code issue
  • CBA: ` irrelevant - ace code issue
  • ACE3: master branch and release

Description:
"ace_cargoUnloaded" eh returns classname instead of an object if the item was added using [classname,vehicle,count] call ace_cargo_fnc_addCargoItem;

Steps to reproduce:

  1. create eh to monitor "ace_cargoUnloaded" and display its arguments;
  2. add item to cargo using aforementioned command;
  3. paradrop the item
  4. obvserve classname being returned instead of an object.

Expected behavior:
object to be returned.

Where did the issue occur?

  • Dedicated / Self-Hosted Multiplayer / Singleplayer / Editor (Singleplayer) / Editor (Multiplayer) / Virtual Arsenal

Additional context:
Can be statically detected.
dropped object is stored in _itemObject but eh returns _item which can contain classname.

@LupusTheCanine
Copy link
Contributor Author

I will make a PR shortly to fix the issue and probably add the eh to other instances of cargo unloading.

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.

1 participant