Page MenuHomeFeedback Tracker

Optional parameter for allPlayers command to exclude headless clients
New, WishlistPublic

Description

When logged in as admin (or sometimes for everyone due to an unknown bug), allPlayers also return headless clients. However, it is often undesirable to have them included, for instance if the command is used for a custom player list, and filtering them out of the array is cumbersome and slow.

It'd be great to have an optional parameter to include/exclude headless clients from the output, e.g. "allPlayers true" / "allPlayers false"

Details

Legacy ID
3138153376
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Scripting
Additional Information

Event Timeline

AgentRev edited Additional Information. (Show Details)Sep 7 2015, 9:13 PM
AgentRev set Category to Scripting.
AgentRev set Reproducibility to N/A.
AgentRev set Severity to None.
AgentRev set Resolution to Open.
AgentRev set Legacy ID to 3138153376.May 8 2016, 12:40 PM
X39 added a subscriber: X39.May 8 2016, 12:40 PM
X39 added a comment.Sep 8 2015, 1:34 PM

as the headless client is also just some player your request is most likely not simple

Yes, it is extremely simple.

It is true, HCs are in allPlayers. I don't know whether it is a bug or intended, since HCs are playable by default and have own PC instance. No other command returns HCs BTW.

Saying "Yes, it is extremely simple" without knowing for sure how this is all organised is not very credible.

For starters, not a single nular command in Arma has an alternative syntax, and allPlayers is nular command. So I doubt allPlayers <boolean> is even possible.

Also why can you not simply:

_justplayers = allPlayers - [hc1, hc2,...hc2356];