10-08-2011, 20:21
10-08-2011, 20:32
(10-08-2011, 20:21)Gamemaster20 Wrote: [ -> ]i need a code like in any of the zombie mods where it chooses someone random to be the zombie...i appreciate it
its easy to write yourself....
just add hud element, wait and random choose like:
Code:
level.zom[i] = level.alivePlayers["allies"][randomint(level.alivePlayers["allies"].size)];
10-08-2011, 20:38
if you would look or search you would find the answer much faster.
@SE7EN why not just random();...
Code:
level.IntermissionTimeStart = 30;
for(count = level.IntermissionTimeStart; count > -1; count--)
{
wait 1;
level.IntermissionTime = count;
}
@SE7EN why not just random();...
Code:
level.zom[i] = random(level.alivePlayers["allies"]);
10-08-2011, 20:39
because it will return you only number lol
ah lol nvr, randomINt maybe? or random is exist too :/ ?
ah lol nvr, randomINt maybe? or random is exist too :/ ?
10-08-2011, 22:20
Code:
num = randomint(level.players.size);
level.RandomPlayer = level.players[num];