Page MenuHomeFeedback Tracker

[Feature Request] New scripting command: assignedVehicles
Feedback, 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!

Related T166543 T153161 T167348

Event Timeline

h- added a subscriber: h-.Aug 7 2020, 1:32 PM
kju-PvPscene edited Additional Information. (Show Details)Jul 13 2022, 7:44 AM
kju-PvPscene edited Additional Information. (Show Details)
kju-PvPscene edited Additional Information. (Show Details)Jul 13 2022, 7:46 AM
kju-PvPscene edited Additional Information. (Show Details)Aug 30 2022, 2:06 PM
kju-PvPscene edited Additional Information. (Show Details)
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Aug 30 2022, 8:23 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
Larrow added a subscriber: Larrow.EditedNov 28 2022, 1:42 PM

BIS_fnc_spawnGroup could do with a change along with this addition.
Currently, if the function spawns a vehicle as part of the group( e.g a CfgGroups entry ), the group is passed to BIS_fnc_spawnVehicle where addVehicle is used on the group, but at the end of BIS_fnc_spawnGroup an additional group is created so as to reorder the units by rank( previous group is deleted ) but the vehicles are not transferred.