damsous 329 Posted August 26, 2018 Hello i would like to init few sqf randomly on a mission with a radio trigger, for exemple mission1.sqf or mission2.sqf or mission3.sqf.... but i dont know how to do it. There is a simple way do do that ? thanks Share this post Link to post Share on other sites
beno_83au 1366 Posted August 26, 2018 Use this: selectRandom 1 Share this post Link to post Share on other sites
HazJ 1288 Posted August 26, 2018 As @beno_83au said. Example: _randomMission = selectRandom ["rescue_mission", "kill_mission", "defend_mission"]; _mission = [] execVM format ["scripts\missions\%1.sqf", _randomMission]; 2 2 Share this post Link to post Share on other sites
damsous 329 Posted August 26, 2018 46 minutes ago, HazJ said: As @beno_83au said. Example: _randomMission = selectRandom ["rescue_mission", "kill_mission", "defend_mission"]; _mission = [] execVM format ["scripts\missions\%1.sqf", _randomMission]; ok i will try that thanks for your help Share this post Link to post Share on other sites