The playableUnits scripting command returns an empty array in single player mode even when the mission contains units that are set as playable. This discrepancy prevents consistent scripting between SP and MP, and it makes it overly difficult to maintain a list of switchable units in SP.
Description
Description
Details
Details
- Legacy ID
- 646867899
- Severity
- Major
- Resolution
- Not A Bug
- Reproducibility
- Always
- Category
- Scripting
Event Timeline
Comment Actions
Intended behavior, use switchableUnits in singleplayer:
http://community.bistudio.com/wiki/switchableUnits
Combine them together to make sure returned array is both SP and MP combaptible:
(switchableUnits + playableUnits)