ACE3/addons/cargo/functions
Lupus the Canine 2973ea5814
Cargo - paradrop fixes (#8203)
* Small fixes in ace_cargo

Makes paradropItem and unloadItem invoke event "ace_cargoUnloaded" with parameters _itemObject, _vehicle and "paradrop" or "unload" respectivelty.
paradropItem invoked said event but if item was classname it would send classname to event which is not particularly useful.

* Update XEH_postInit.sqf

Moved event invocation to unloadItem, this provides ability to always pass object to eventhandlers.

* code refactor

refactored according to https://github.com/acemod/ACE3/pull/8203#discussion_r610394484

* Update fnc_paradropItem.sqf

apply new fix

* Revert "Update fnc_paradropItem.sqf"

This reverts commit 3db5cc1910.

* Update fnc_paradropItem.sqf

fixed hint that was broken by previous fixes

* style check

Co-authored-by: commy2 <commy-2@gmx.de>

* style check

Co-authored-by: commy2 <commy-2@gmx.de>

* naming convention

replaced object references called _item with _object.

* Update fnc_paradropItem.sqf

Co-authored-by: commy2 <commy-2@gmx.de>
2021-04-30 22:38:57 -05:00
..
fnc_addCargoItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_addCargoVehiclesActions.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_canLoadItemIn.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_canUnloadItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_getCargoSpaceLeft.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_getSizeItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_handleDeleted.sqf Cargo - Fix loaded cargo not being deleted when vehicle is destroyed (#7851) 2020-08-18 12:42:09 -05:00
fnc_handleDestroyed.sqf Cargo - Fix loaded cargo not being deleted when vehicle is destroyed (#7851) 2020-08-18 12:42:09 -05:00
fnc_initObject.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_initVehicle.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_loadItem.sqf Disable damage for all cargo objects (#7946) 2020-10-10 18:58:38 +02:00
fnc_moduleSettings.sqf Headers - Fix function names in examples (#7663) 2020-04-25 08:41:45 +02:00
fnc_onMenuOpen.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_paradropItem.sqf Cargo - paradrop fixes (#8203) 2021-04-30 22:38:57 -05:00
fnc_removeCargoItem.sqf conform isnil checking: cargo 2020-02-12 17:28:10 +01:00
fnc_setSize.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_setSpace.sqf Cargo - setSpace checks for existing cargo (#7133) 2019-12-07 22:10:03 +01:00
fnc_startLoadIn.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_startUnload.sqf Cargo - Add condition checking durring load/unload (#6821) 2019-02-22 18:54:55 -06:00
fnc_unloadItem.sqf Cargo - paradrop fixes (#8203) 2021-04-30 22:38:57 -05:00
fnc_validateCargoSpace.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
script_component.hpp Cleaned function headers 2015-08-16 22:41:35 +02:00