2015-12-16 17:38:25 +00:00
|
|
|
/*
|
|
|
|
Author: Aaron Clark - EpochMod.com
|
|
|
|
|
|
|
|
Contributors: Raimonds Virtoss
|
|
|
|
|
|
|
|
Description:
|
|
|
|
Epoch Item Interact when double clicked
|
|
|
|
|
|
|
|
Licence:
|
|
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
|
|
|
|
Github:
|
2016-06-13 16:54:19 +00:00
|
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/inventory/EPOCH_itemInteractDblClick.sqf
|
2015-12-16 17:38:25 +00:00
|
|
|
*/
|
2016-09-01 00:29:08 +00:00
|
|
|
//[[[cog import generate_private_arrays ]]]
|
|
|
|
private ["_config","_data"];
|
|
|
|
//[[[end]]]
|
2016-04-08 20:21:46 +00:00
|
|
|
_this call EPOCH_selectInventoryItem;
|
|
|
|
_data = EPOCH_InteractedItem select 1;
|
2015-10-12 19:15:10 +00:00
|
|
|
_config = 'CfgCrafting' call EPOCH_returnConfig;
|
2016-04-08 20:21:46 +00:00
|
|
|
if (isClass (_config >> _data)) then {
|
2015-10-12 19:15:10 +00:00
|
|
|
(EPOCH_InteractedItem select 0) call EPOCH_crafting_load;
|
|
|
|
} else {
|
|
|
|
//TODO: eat, drink, build ... etc
|
2015-12-16 17:38:25 +00:00
|
|
|
};
|