Page MenuHomeFeedback Tracker

[Feature Request] New scripting command: assignedVehicles
New, NormalPublic

Description

With https://community.bistudio.com/wiki/addVehicle one can make vehicles available for AI groups to use, as well as to mark them, even empty, as threat to the enemy.
The status is also important for https://community.bistudio.com/wiki/leaveVehicle (possible more commands).

As such it would be useful to have a getter.

_vehicles = assignedVehicles group/unit
  1. Return empty array if no vehicle is assigned
  2. When unit is provided as parameter, returns the same as for group (this alternative syntax is not needed - just nice to have)

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting
Additional Information

Important: https://community.bistudio.com/wiki/assignedVehicle only returns the current vehicle an unit is in - not the assigned vehicles for the whole group!