mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
bfd3695868
* SQF Lint Cleanup Pass * Fix var in TRACE * Add basic python tool * Simplify * Hit space key 6 times * Fix error in dropNozzle * handle error message exceptions * Fix py
33 lines
653 B
Plaintext
33 lines
653 B
Plaintext
/*
|
|
* Author: bux578
|
|
* Returns all turret indecies of door gunners.
|
|
*
|
|
* Arguments:
|
|
* 0: Vehicle <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* All turret indecies of the Vehicle <ARRAY>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_vehicle"];
|
|
|
|
private _turrets = allTurrets [_vehicle, true];
|
|
|
|
private _doorTurrets = [];
|
|
|
|
{
|
|
private _config = configFile >> "CfgVehicles" >> typeOf _vehicle;
|
|
|
|
_config = [_config, _x] call FUNC(getTurretConfigPath);
|
|
|
|
if (((getNumber (_config >> "isCopilot")) == 0) && {count getArray (_config >> "weapons") > 0}) then {
|
|
_doorTurrets pushBack _x;
|
|
};
|
|
false
|
|
} count _turrets;
|
|
|
|
_doorTurrets
|