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.Nov 14 2022, 2:26 PM

That command name is so ugly tho :u

kju-PvPscene added a comment.EditedNov 14 2022, 6:30 PM

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

This comment was removed by Tenshi.
Tenshi added a subscriber: Tenshi.Jan 10 2023, 10:46 AM