Page MenuHomeFeedback Tracker

[Feature Request] SQF command to return only vehicles for a given side
New, NormalPublic

Description

ARRAY = getVehiclesOfSide <SIDE>;

The reason is filtering on the SQF side is quite slow

0.010 ms
vehicles // 70

0.116 ms
8627/10000
vehicles select {side _x isEqualTo west} // 23

0.116 ms
8608/10000
vehicles select {side _x isEqualTo independent} // 11

0.113 ms
8813/10000
vehicles select {side _x isEqualTo civilian} // 36

Details

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

Related to T164521

Event Timeline

kju-PvPscene edited Additional Information. (Show Details)
This comment was removed by adamsmith90.
dedmen added a subscriber: dedmen.Mon, Nov 14, 2:26 PM

That command name is so ugly tho :u

kju-PvPscene added a comment.EditedMon, Nov 14, 6:30 PM

what about vehiclesSide or sideVehicles (with or without get part)