mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
copied across treatment framework from medical and adjusted it to suit the repair actions
27 lines
488 B
Plaintext
27 lines
488 B
Plaintext
/*
|
|
* Author: KoffeinFlummi
|
|
* Checks if a unit is in a engineeral vehicle.
|
|
*
|
|
* Arguments:
|
|
* 0: unit to be checked <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Is unit in engineeral vehicle? <BOOL>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit", "_vehicle"];
|
|
|
|
_unit = _this select 0;
|
|
_nearObjects = nearestObjects [_unit, ["Air","LandVehicle"], 20];
|
|
|
|
_return = false;
|
|
{
|
|
if ([_x] call FUNC(isRepairVehicle)) exitwith {_return = true;};
|
|
}foreach _nearObjects;
|
|
|
|
_return;
|