ACE3/addons/cargo/functions
Vdauphin f9943658e9 Cargo - Support of object without ace_cargo_size defined in config or -1 config value (#6364)
* Add: Now findUnloadPosition support also cargo object

- use of ace_cargo_fnc_getSizeItem to determine size of item

- prefer the config way instead of manually set size

- This will also take into account object manually added to the cargo system with ace_cargo_fnc_setsize

- use the cargo object for ace_cargo_fnc_unloadItem.

* FIX: old work around

* FIX: error when cargo module is not loaded

* As suggested by @orbis2358

This fix handle the case when cargo module is not loaded for scheduled and unscheduled environnement.

* Use ACE framework to check if module is present

* FIX: EFUNC and isEqualto

- _itemSize here is always number
- here we are in common module (addons/common/functions/fnc_findUnloadPosition) so FUNC is ace_common_fnc

* FIX case where config value is `-1`

- if the config value is -1, get the `ace_cargo_size` from the `ace_cargo_fnc_getSizeItem
-
 https://github.com/acemod/ACE3/issues/6357#issuecomment-393525374
2018-05-31 22:48:19 -05:00
..
fnc_addCargoItem.sqf Rename cargo events: 2016-06-24 12:12:19 -03:00
fnc_addCargoVehiclesActions.sqf cargo - use getInteractionDistance to get better distance (#5697) 2017-11-10 15:28:12 +01:00
fnc_canLoadItemIn.sqf cargo - use getInteractionDistance to get better distance (#5697) 2017-11-10 15:28:12 +01:00
fnc_canUnloadItem.sqf Cleanup optional argument headers (#5543) 2017-09-22 17:33:08 +02:00
fnc_getCargoSpaceLeft.sqf Add cargo eden attributes (#4780) 2017-05-31 23:54:57 +01:00
fnc_getSizeItem.sqf Add cargo eden attributes (#4780) 2017-05-31 23:54:57 +01:00
fnc_handleDestroyed.sqf Cleanup Function Headers titles 2016-06-18 11:50:41 +02:00
fnc_initObject.sqf Improve class initialization (#6085) 2018-02-24 12:39:03 -06:00
fnc_initVehicle.sqf Improve class initialization (#6085) 2018-02-24 12:39:03 -06:00
fnc_loadItem.sqf Disable damage on cars loaded as cargo (#5402) 2017-08-22 13:27:11 -05:00
fnc_moduleSettings.sqf Convert ACE_settings to CBA_settings (#4895) 2017-11-11 20:21:55 +01:00
fnc_onMenuOpen.sqf cargo - use getInteractionDistance to get better distance (#5697) 2017-11-10 15:28:12 +01:00
fnc_paradropItem.sqf fix #6237 (#6238) 2018-04-09 22:48:58 -05:00
fnc_removeCargoItem.sqf Cargo: Add removeCargoItem Function (#5432) 2017-09-16 11:21:23 -05:00
fnc_setSize.sqf Add JIP event deleting if vehicle is deleted (#5506) 2017-09-16 22:18:28 +02:00
fnc_setSpace.sqf Add JIP event deleting if vehicle is deleted (#5506) 2017-09-16 22:18:28 +02:00
fnc_startLoadIn.sqf Lock object while loading to cargo + disable disassembling (#5624) 2017-11-29 14:07:30 -06:00
fnc_startUnload.sqf Add Paradrop Time Coefficient Setting (#5116) 2017-05-05 14:02:59 -05:00
fnc_unloadItem.sqf Cargo - Support of object without ace_cargo_size defined in config or -1 config value (#6364) 2018-05-31 22:48:19 -05:00
fnc_validateCargoSpace.sqf Cleanup Function Headers titles 2016-06-18 11:50:41 +02:00
script_component.hpp Cleaned function headers 2015-08-16 22:41:35 +02:00