The vehicles command returns much more than vehicles and WeaponHolderSimulated, it also returns certain static objects such as chairs and lights
Description
Description
Details
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
Comment Actions
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)