Jump to content
Sneax x

Random Teleport to Coordinates points

Recommended Posts

Hi,

i got this script:

params ["_tele","_caller"];
_caller setPos getPos (selectRandom [p1,p2,p3,p4,p5,p6,p7,p8]);

it random choose one of those 8points and the you get teleported randomly... i want the same with coordinates... but they are x,y,z so i cant use this script... i find nothing in the web.

Thank you for your help!

Share this post


Link to post
Share on other sites

Wrong section.
Better section.

 


Of course you can use [x,y,z] positions.

params ["_tele","_caller"];
_caller setPos (selectRandom [ [10,10,0], [20,20,0], [30,30,0], [40,40,0], [50,50,0], [60,60,0], [70,70,0], [80,80,0] ]);


Note:
I removed 'getPos' and added an array of positions.
Makes sure the z-axis is 0 unless you want _caller to have broken bones at the very least.

  • Like 1

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

×