mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
3ac749d64b
This is the latest stable version of Sarge AI for Arma 3: Exile.
23 lines
576 B
Plaintext
23 lines
576 B
Plaintext
/****************************************************************
|
|
File: UPSMON_Fn_Gunnercrew.sqf
|
|
Author: Rafalsky
|
|
|
|
Description:
|
|
Return all units in turret
|
|
Parameter(s):
|
|
<--- vehicle
|
|
Returns:
|
|
array of units in turret of the vehicle (in vehicle and assigned as turret)
|
|
****************************************************************/
|
|
private ["_vehicle","_x","_unitsInturret"];
|
|
|
|
_vehicle = _this select 0;
|
|
_unitsInturret = [];
|
|
{
|
|
if( (assignedVehicleRole _x) select 0 == "TURRET") then
|
|
{
|
|
_unitsInturret pushback _x;
|
|
};
|
|
} forEach crew _vehicle;
|
|
|
|
_unitsInturret |