mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#2528 (2) - Integrate Dragging
This commit is contained in:
parent
ad1191cdd5
commit
8ffe1b4e01
@ -20,7 +20,7 @@ _configBasic = (configFile >> "ACE_Medical_Actions" >> "Basic");
|
|||||||
_configAdvanced = (configFile >> "ACE_Medical_Actions" >> "Advanced");
|
_configAdvanced = (configFile >> "ACE_Medical_Actions" >> "Advanced");
|
||||||
|
|
||||||
_fnc_compileActionsLevel = {
|
_fnc_compileActionsLevel = {
|
||||||
private ["_entryCount", "_actions", "_displayName", "_condition", "_category", "_statement"];
|
private ["_actions", "_displayName", "_condition", "_category", "_statement"];
|
||||||
params ["_config"];
|
params ["_config"];
|
||||||
_actions = [];
|
_actions = [];
|
||||||
|
|
||||||
@ -40,3 +40,26 @@ _fnc_compileActionsLevel = {
|
|||||||
|
|
||||||
GVAR(actionsBasic) = [_configBasic] call _fnc_compileActionsLevel;
|
GVAR(actionsBasic) = [_configBasic] call _fnc_compileActionsLevel;
|
||||||
GVAR(actionsAdvanced) = [_configAdvanced] call _fnc_compileActionsLevel;
|
GVAR(actionsAdvanced) = [_configAdvanced] call _fnc_compileActionsLevel;
|
||||||
|
|
||||||
|
//Manually add the drag actions, if dragging exists.
|
||||||
|
if (["ace_dragging"] call EFUNC(common,isModLoaded)) then {
|
||||||
|
_condition = {
|
||||||
|
(ACE_player != GVAR(INTERACTION_TARGET)) && {[ACE_player, GVAR(INTERACTION_TARGET)] call EFUNC(dragging,canDrag)}
|
||||||
|
};
|
||||||
|
_statement = {
|
||||||
|
GVAR(pendingReopen) = false; //No medical_treatmentSuccess event after drag, so don't want this true
|
||||||
|
[ACE_player, GVAR(INTERACTION_TARGET)] call EFUNC(dragging,startDrag);
|
||||||
|
};
|
||||||
|
GVAR(actionsBasic) pushBack [localize ELSTRING(dragging,Drag), "drag", _condition, _statement];
|
||||||
|
GVAR(actionsAdvanced) pushBack [localize ELSTRING(dragging,Drag), "drag", _condition, _statement];
|
||||||
|
|
||||||
|
_condition = {
|
||||||
|
(ACE_player != GVAR(INTERACTION_TARGET)) && {[ACE_player, GVAR(INTERACTION_TARGET)] call EFUNC(dragging,canCarry)}
|
||||||
|
};
|
||||||
|
_statement = {
|
||||||
|
GVAR(pendingReopen) = false; //No medical_treatmentSuccess event after drag, so don't want this true
|
||||||
|
[ACE_player, GVAR(INTERACTION_TARGET)] call EFUNC(dragging,startCarry);
|
||||||
|
};
|
||||||
|
GVAR(actionsBasic) pushBack [localize ELSTRING(dragging,Carry), "drag", _condition, _statement];
|
||||||
|
GVAR(actionsAdvanced) pushBack [localize ELSTRING(dragging,Carry), "drag", _condition, _statement];
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user