Page MenuHomeFeedback Tracker

BIS_fnc_selectRandom fails when choosing from an array of logics
Closed, ResolvedPublic

Description

When BIS_fnc_selectRandom is given an array of logic to choose one from, it always returns the array it was originally provided, not a random element. {F27931}

Details

Legacy ID
2088423103
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Make an array of logics and ask fnc_selectRandom to choose one. Observe unexpected behaviour.

See attached test mission. Run and observe RPT.

Additional Information

Event Timeline

Tankbuster edited Additional Information. (Show Details)
Tankbuster set Category to Scripting.
Tankbuster set Reproducibility to Always.
Tankbuster set Severity to None.
Tankbuster set Resolution to No Bug.
Tankbuster set Legacy ID to 2088423103.May 8 2016, 1:37 PM
Tankbuster added a subscriber: Tankbuster.

Oh dear. User error. Script passes a nested array to function.
Please disregard.