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

Disarming - Add quantity to ace_disarming_dropItems event #8232

Merged
merged 4 commits into from
Oct 11, 2021

Conversation

Vdauphin
Copy link
Contributor

@Vdauphin Vdauphin commented Apr 25, 2021

When merged this pull request will:

  • The ace_disarming_dropItems event now return the number of items removed

Story from slack:
I am looking for an event fired when you remove items from a prisoner
I found this one but it doesn't return the number of items removed

[QGVAR(dropItems), [ACE_player, GVAR(disarmTarget), [_data]], [GVAR(disarmTarget)]] call CBA_fnc_targetEvent;

The number of items to be removed is determined here I guess: https://github.com/acemod/ACE3/blob/76676eee462cb0bbe400a482561c148d8652b550/addons/disarming/functions/fnc_disarmDropItems.sqf
So I am considering adding a new event here but it doesn't look as easy as I was expecting

@Vdauphin Vdauphin changed the title Disarming - Add ace_disarming_dropItems now return the shown right text in the item Disarming - Add ace_disarming_dropItems event now return the shown right text in the item Apr 25, 2021
Copy link
Member

@jonpas jonpas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this text anyways? What does it represent?

addons/disarming/functions/fnc_openDisarmDialog.sqf Outdated Show resolved Hide resolved
@Vdauphin
Copy link
Contributor Author

What is this text anyways? What does it represent?

It represent the number of items take by the player

Co-authored-by: jonpas <jonpas33@gmail.com>
@jonpas
Copy link
Member

jonpas commented Oct 11, 2021

Should we convert it to a number then? Right now it's a string number which makes no sense.

@Vdauphin
Copy link
Contributor Author

I don't know if this could be something else
I prefer let people handle it outside ACE
Tell me what you prefer

The number of items removed should be show as number and not as text
@jonpas jonpas changed the title Disarming - Add ace_disarming_dropItems event now return the shown right text in the item Disarming - Add quantity to ace_disarming_dropItems event Oct 11, 2021
@jonpas jonpas merged commit ec12ee2 into acemod:master Oct 11, 2021
@Vdauphin Vdauphin deleted the patch-6 branch October 11, 2021 20:28
AndreasBrostrom pushed a commit to AndreasBrostrom/ACE3 that referenced this pull request Dec 3, 2021
)

Co-authored-by: jonpas <jonpas33@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants