Page MenuHomeFeedback Tracker

Headless Client gamelogic does not show in playableUnits array
Closed, ResolvedPublic

Description

As the tin says, a Headless Client gamelogic even when set as playable doesn't show up in the playableUnits array.

Why is this relevant? If I wanted to setGroupOwner to a headlessClient with an unknown name by looking through playableUnits - such would be impossible.

Details

Legacy ID
1003407874
Severity
None
Resolution
Not A Bug
Reproducibility
Always
Operating System
Windows 7
Category
Engine
Steps To Reproduce

Place Headless Client gamelogic and set to playable
diag_log playableUnits

Additional Information

playableUnits

Description:
Returns a list of playable units (occupied by both AI or players) in a multiplayer game. This does not include dead players awaiting respawn.

Note: Headless clients are "alive" as (alive h1) = true

Event Timeline

zorrobyte edited Additional Information. (Show Details)
zorrobyte set Category to Engine.
zorrobyte set Reproducibility to Always.
zorrobyte set Severity to None.
zorrobyte set Resolution to Open.
zorrobyte set Legacy ID to 1003407874.May 7 2016, 8:15 PM

You can already return hc with allmissionobjects. Adding it to playableunits might break many older scripts.

All virtual units won't appear in playableUnits afaik. This seems like a design decision and I think it's a good one personally.

Good point, I was up late and had a hairbrained idea. Feel free to close KK

razazel closed this task as Resolved.Sep 5 2016, 5:27 PM
razazel updated the task description. (Show Details)
razazel changed Resolution from Open to Not A Bug.
razazel edited Steps To Reproduce. (Show Details)
razazel edited Additional Information. (Show Details)
razazel set Operating System to Windows 7.