Page MenuHomeFeedback Tracker

Vehicles command returns static objects
Closed, ResolvedPublic

Description

The vehicles command returns much more than vehicles and WeaponHolderSimulated, it also returns certain static objects such as chairs and lights

Details

Severity
Minor
Resolution
Not A Bug
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Run the mission and hint will show some examples of what the vehicles command should not return

Additional Information
vehicles select { (_x iskindof "AllVehicles") };

can be used to filter non wanted objects out

Event Timeline

gc8 created this task.Jul 3 2023, 11:11 AM
dedmen added a subscriber: dedmen.Jul 4 2023, 10:17 AM

Vehicles command returns vehicles.
Chairs and lights and the pallet, are vehicles.

dedmen closed this task as Resolved.Jul 4 2023, 10:17 AM
dedmen changed Resolution from Open to Not A Bug.
gc8 added a comment.EditedJul 4 2023, 6:14 PM

ok, can we then get a command that returns only driveable/manable vehicles?

You already have it. You posted it above
vehicles select { (_x iskindof "AllVehicles") };

If you want to filter further for driveable/manable, you may want to also check for enableSimulation, and whether there are any crew seats available at all (Don't know how UGV/UAV behave in that regard)

gc8 added a comment.Jul 22 2023, 10:02 AM

You already have it. You posted it above
vehicles select { (_x iskindof "AllVehicles") };

If you want to filter further for driveable/manable, you may want to also check for enableSimulation, and whether there are any crew seats available at all (Don't know how UGV/UAV behave in that regard)

yes I was thinking of engine solution for speed