mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
6741822480
* add unloading from inside vehicles * Update addons/common/functions/fnc_findUnloadPosition.sqf * Update fnc_findUnloadPosition.sqf
23 lines
413 B
Plaintext
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"])}
|