mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
582 B
Plaintext
29 lines
582 B
Plaintext
|
/*
|
||
|
* Author: Tuupertunut
|
||
|
* Returns all turrets in a vehicle.
|
||
|
*
|
||
|
* BIS command "allTurrets" does not return the driver turret at the time of writing (2017-07-16).
|
||
|
* This function just adds driver turret to the array returned by "allTurrets".
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Vehicle <OBJECT>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* Turret paths <ARRAY>
|
||
|
*
|
||
|
* Example:
|
||
|
* [vehicle] call ace_rearm_fnc_getAllRearmTurrets
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
params ["_vehicle"];
|
||
|
|
||
|
private _turrets = allTurrets _vehicle;
|
||
|
|
||
|
// Adding the driver turret "[-1]".
|
||
|
_turrets pushBack [-1];
|
||
|
|
||
|
_turrets
|