Jump to content
Sign in to follow this  
Icaruk

Move one marker to a random marker position.

Recommended Posts

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 by Icaruk

Share this post


Link to post
Share on other sites

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 by Larrow

Share this post


Link to post
Share on other sites
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×