Hi guys,
I want to randomly pick one object from a group of objects and spawn it in the level, but I cant seem to find the functionality.
Basically I want to do something like the following:
var a = random(0,1)
if (a=>0&&<0.2) then
Spawn.(Object1)
elseif (a=>0.2&&<0.4) then
Spawn.(Object2)
elseif (a=>0.4&&<0.6) then
Spawn.(Object3)
elseif (a=>0.6&&<0.8) then
Spawn.(Object4)
else
Spawn.(Object5)
How do I do this?
Thanks,
Mat