Page MenuHomeFeedback Tracker

Scripting Command Request: "getPylonTurret"
Closed, ResolvedPublic

Description

Currently, the pylons scripting commands family is lacking a command to get the turret path that owns/controls the given pylon. A new command to solve this problem may work as follows:

Name: getPylonTurret
Description: Returns the vehicle turret path that owns/controls the given pylon. [] for driver turret, [0] for gunner turret.
Syntax: vehicle getPylonTurret pylon

  • vehicle: <OBJECT>
  • pylon: pylon index (starting from 1) <NUMBER> or pylon class name from TransportPylonsComponent >> pylons <STRING>

Return Value: Turret path that owns/controls the given pylon. <ARRAY>

  • [] for driver turret.
  • [0] for gunner turret.

This is somewhat related to T124949, however, this requests different functionality as a command to get the pylon magazines of a vehicle already exists.

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

BIS_fnc_KK changed the task status from New to Assigned.
LouMontana changed the task status from Assigned to Feedback.Nov 22 2020, 3:26 PM
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Nov 24 2020, 6:13 PM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

getAllPylonsInfo on dev-branch works well in providing this functionality. Thank you.

Pi closed this task as Resolved.Jun 12 2021, 4:33 PM
Pi claimed this task.