I have here another (simple) problem.
How can I return two random values?
Here's my script:
1
2
3
4
5
6
7
2
3
4
5
6
7
items={1,2,3,4,5,6,10,11,20,21,22,23,24,30,31,32,33,34,35,36,37,38,39,91,40,45,46,47,48,49,88,90,69,74,78,85,51,52,53,72,73,75,76,86,89,77,87,41,57,58,61,62,64,65,79,80,84} addhook("spawn","zombie_spawn") function zombie_spawn() weapons={items[math.random(1,57)],items[math.random(1,57)]} return weapons end
Is there a way to pick two random values from one table to another (from "items" to "weapons") or can I do
1
return items[math.random(1,57)]
OR is there an easier way to do this which I don't know about?
Thanks in advance for your reply
mOnger