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

Title: I travel the world and the seven seas
Post by: mr_book.PXS.Pvt on 09 Feb 2013, 01:38:48
Hi,
so I put together this little script here
Code: [Select]
_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
Title: Re: I travel the world and the seven seas
Post by: Lone~Wolf on 16 Jul 2013, 22:13:35
Woo! Very cool. Could be useful for a DayZ style thingy to spawn players in random towns.