FrankManic 13 Posted May 17, 2015 So I've got an array, and I want to randomly choose one entry from the array and display it as a hint. _myarray = ["fred", "dave", "tom", "dick", "harry"]; _myRNJesus = _myarray select floor random count _myarray; hint "_myRNJesus"; I've got a trigger that calls that script set up, but nothing appears on screen. Unfortunately I don't know enough to figure out what I'm doing wrong. Any help would be greatly appreciated. My ultimate goal is to use the whole random array thing to choose random markers as spawn points for mission objectives to give my missions more replayability, so any comments on how to do that would be appreciated as well. Share this post Link to post Share on other sites
[evo] dan 79 Posted May 17, 2015 hint format ["%1", _myRNJesus]; Format is a useful command which uses the '%x' and then can use an array of items to then be formatted. https://community.bistudio.com/wiki/format Share this post Link to post Share on other sites
killzone_kid 1326 Posted May 17, 2015 Change hint "_myRNJesus"; to hint _myRNJesus; Share this post Link to post Share on other sites
jshock 512 Posted May 18, 2015 Could also do: hint str(_myRNJesus); Share this post Link to post Share on other sites