Jump to content
Sign in to follow this  
markku

Random postion problem!

Recommended Posts

i am using this line in init.sqf it work nice for players but if i want to one player to be selected place and rest team random how to fix this?

_StartLoc = round ((random 4) + 0.5); //

if (_StartLoc == 1) then

{

player setpos getmarkerpos "s1";

player setdir 180;

};

if (_StartLoc == 2) then

{

player setpos getmarkerpos "s2";

player setdir 180;

};

if (_StartLoc == 3) then

{

player setpos getmarkerpos "s3";

player setdir 180;

};

if (_StartLoc == 4) then

{

player setpos getmarkerpos "s4";

player setdir 180;

};

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  

×