OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: mr_book.PXS.Pvt on 09 Feb 2013, 01:38:48
-
Hi,
so I put together this little script here
_con = configfile >> "cfgworlds" >> worldname >> "names";
_rnd = floor random (count _con-1);
_pos = getarray (_con select _rnd >> "position");
player setpos _pos;
which teleports you to a randomly selected town somewhere on the map, and now I have no idea what to do with it.
So I'm just giving it away. Feel free to use it anyway you like.
Cheers,
mr_book
-
Woo! Very cool. Could be useful for a DayZ style thingy to spawn players in random towns.