mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
5bc43fe247
* Improve getPylonTurret by using getAllPylonsInfo * Fix indentation Co-authored-by: PabstMirror <pabstmirror@gmail.com>
22 lines
455 B
Plaintext
22 lines
455 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Returns the turret path that owns the given pylon.
|
|
*
|
|
* Arguments:
|
|
* 0: Vehicle <OBJECT>
|
|
* 1: Pylon Index (starting at 0) <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* Turret Path (either [-1] or [0]) <ARRAY>
|
|
*
|
|
* Example:
|
|
* [cursorObject, 0] call ace_common_fnc_getPylonTurret
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_vehicle", "_pylonIndex"];
|
|
|
|
getAllPylonsInfo _vehicle param [_pylonIndex, []] param [2, [-1]]
|