ACE3/addons/medical_treatment/functions/fnc_canUnloadUnit.sqf
Grim 6741822480
Interaction - Allow unloading patients, bodies, and captives from inside vehicles (#9645)
* add unloading from inside vehicles

* Update addons/common/functions/fnc_findUnloadPosition.sqf

* Update fnc_findUnloadPosition.sqf
2023-11-22 19:38:52 -03:00

23 lines
413 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: LinkIsGrim
* Checks if unit can be unloaded.
*
* Arguments:
* 0: Unloader <OBJECT>
* 1: Target <OBJECT>
*
* Return Value:
* Can Unload <BOOL>
*
* Example:
* [player, bob] call ace_medical_treatment_fnc_canUnloadUnit
*
* Public: No
*/
params ["_unloader", "_target"];
!isNull objectParent _target &&
{!(lifeState _target in ["HEALTHY", "INJURED"])}