Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request timer
#1
i need a code like in any of the zombie mods where it chooses someone random to be the zombie...i appreciate it
Reply

#2
(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)];
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
if you would look or search you would find the answer much faster.

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"]);
[Image: b_560_95_1.png]
Reply

#4
because it will return you only number lol
ah lol nvr, randomINt maybe? or random is exist too :/ ?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
Code:
num = randomint(level.players.size);
level.RandomPlayer = level.players[num];
[Image: ctoc.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help remove timer Dynasty 15 8,292 08-25-2013, 13:56
Last Post: hillbilly
  Countdown timer pflaurie 2 2,510 03-14-2013, 11:30
Last Post: pflaurie
  Help timer/message for flags hillbilly 31 14,623 01-20-2013, 18:20
Last Post: [Z00MBY] Alex
  First the timer works, now it doesnt show up !? Xzite 2 2,098 03-17-2012, 00:28
Last Post: Xzite
  [Request] random man switch team with timer wezljkz 6 3,568 02-18-2011, 07:04
Last Post: No One

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.