Skip to content

Commit

Permalink
Common - Add getters for object being carried/dragged (acemod#10570)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkIsGrim authored Dec 19, 2024
1 parent 62dd978 commit 5f34ae8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 2 additions & 0 deletions addons/common/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ PREP(hideUnit);
PREP(interpolateFromArray);
PREP(inTransitionAnim);
PREP(isAwake);
PREP(isBeingCarried);
PREP(isBeingDragged);
PREP(isEngineer);
PREP(isEOD);
PREP(isInBuilding);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#include "..\script_component.hpp"
/*
* Author: PabstMirror
* Returns if a target is being carried. (from ace_dragging)
* Returns if an object is being carried. (from ace_dragging)
*
* Arguments:
* 0: Target Unit <OBJECT>
* 0: Object <OBJECT>
*
* Return Value:
* Is being carried <BOOL>
*
* Example:
* [bob] call ace_medical_status_fnc_isBeingCarried
* bob call ace_common_fnc_isBeingCarried
*
* Public: No
* Public: Yes
*/

params ["_target"];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#include "..\script_component.hpp"
/*
* Author: PabstMirror
* Returns if a target is being dragged. (from ace_dragging)
* Returns if an object is being dragged. (from ace_dragging)
*
* Arguments:
* 0: Target Unit <OBJECT>
* 0: Object <OBJECT>
*
* Return Value:
* Is being dragged <BOOL>
*
* Example:
* [bob] call ace_medical_status_fnc_isBeingDragged
* bob call ace_common_fnc_isBeingDragged
*
* Public: No
* Public: Yes
*/

params ["_target"];
Expand Down
2 changes: 0 additions & 2 deletions addons/medical_status/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ PREP(handleKilled);
PREP(handleKilledMission);
PREP(hasStableVitals);
PREP(initUnit);
PREP(isBeingCarried);
PREP(isBeingDragged);
PREP(isInStableCondition);
PREP(setCardiacArrestState);
PREP(setDead);
Expand Down
4 changes: 2 additions & 2 deletions addons/medical_treatment/functions/fnc_loadUnit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ if (_patient call EFUNC(common,isAwake)) exitWith {
[[LSTRING(CanNotLoad), _patient call EFUNC(common,getName)]] call EFUNC(common,displayTextStructured);
};

if (_patient call EFUNC(medical_status,isBeingCarried)) then {
if (_patient call EFUNC(common,isBeingCarried)) then {
[_medic, _patient] call EFUNC(dragging,dropObject_carry);
};

if (_patient call EFUNC(medical_status,isBeingDragged)) then {
if (_patient call EFUNC(common,isBeingDragged)) then {
[_medic, _patient] call EFUNC(dragging,dropObject);
};

Expand Down

0 comments on commit 5f34ae8

Please sign in to comment.