Icaruk 14 Posted December 7, 2013 (edited) I have this code burbuja setPos (getMarkerPos "bonusmrk"); but I want that "burbuja" can move to: "bonusmrkB", "bonusmrkC" and "bonusmrkD" randomly. Any thoughts? ---------- Post added at 14:38 ---------- Previous post was at 14:06 ---------- Okay, I accidentally found the way to do it: movepos = ["bonusmrk", "bonusmrkB", "bonusmrkC", "bonusmrkD"] call BIS_fnc_selectRandom; burbuja setPos (getMarkerPos movepos); Now I just need to move a trigger, I can't find the way to move it :S Edited December 7, 2013 by Icaruk Share this post Link to post Share on other sites
Larrow 2803 Posted December 7, 2013 (edited) Use BIS_fnc_selectRandom to select a markername out of an array e.g burbuja setPos (getMarkerPos (["bonusmrkB", "bonusmrkC", "bonusmrkD"] call BIS_fnc_selectRandom)); Now I just need to move a trigger, I can't find the way to move it :S Triggers can be moved with any of the setPos commands. Edited December 7, 2013 by Larrow Share this post Link to post Share on other sites
Icaruk 14 Posted December 7, 2013 Use BIS_fnc_selectRandom to select a markername out of an array e.g burbuja setPos (getMarkerPos (["bonusmrkB", "bonusmrkC", "bonusmrkD"] call BIS_fnc_selectRandom)); Triggers can be moved with any of the setPos commands. Thank you! <3 Share this post Link to post Share on other sites