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

Cargo - Add object variable for custom interaction delay #10308

Merged
merged 5 commits into from
Sep 17, 2024

Conversation

TheCandianVendingMachine
Copy link
Contributor

When merged this pull request will:

  • Add variable on items which will set how long it takes to interact with the item
  • Add function to get this delay

When developing a feature for an in-house mod, we ran into a scenario where we want itemSize = 0 but still allow some time for the interaction to occur. I figured adding a variable to each item would allow this functionality without much hassle.

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

addons/cargo/functions/fnc_getDelayItem.sqf Outdated Show resolved Hide resolved
addons/cargo/functions/fnc_getDelayItem.sqf Outdated Show resolved Hide resolved
addons/cargo/functions/fnc_startLoadIn.sqf Outdated Show resolved Hide resolved
addons/cargo/functions/fnc_getDelayItem.sqf Show resolved Hide resolved
@LinkIsGrim LinkIsGrim added this to the 3.18.0 milestone Sep 12, 2024
@LinkIsGrim LinkIsGrim changed the title Cargo - Add object variable to allow for custom interaction delay Cargo - Add object variable for custom interaction delay Sep 17, 2024
@LinkIsGrim LinkIsGrim merged commit 038dce8 into master Sep 17, 2024
4 checks passed
@LinkIsGrim LinkIsGrim deleted the cargo_custom_delay branch September 17, 2024 16:59
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.

5 participants