2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2017-09-26 19:47:13 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
2021-02-23 16:57:57 +00:00
|
|
|
* Returns the turret path that owns the given pylon.
|
2017-09-26 19:47:13 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Vehicle <OBJECT>
|
|
|
|
* 1: Pylon Index (starting at 0) <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2021-02-23 16:57:57 +00:00
|
|
|
* Turret Path (either [-1] or [0]) <ARRAY>
|
2017-09-26 19:47:13 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [cursorObject, 0] call ace_common_fnc_getPylonTurret
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_vehicle", "_pylonIndex"];
|
|
|
|
|
2021-02-23 16:57:57 +00:00
|
|
|
getAllPylonsInfo _vehicle param [_pylonIndex, []] param [2, [-1]]
|