Hi, I want to be able to destroy a box then spawn one of 3 random objects, Ammo, HealthPack and a blank object which doesnt do anything.
I want the blank object to have a higher spawn rate if possible.
set a variable to choose(1,2,3,3,3)
then if variable is 1 spawn ammo
if variable is 2 spawn healthpack
if variable is 3 spawn blank
this way 3/5 of the time the blank is spawned.
Develop games in your browser. Powerful, performant & highly capable.
LittleStain would this be the same for 1 object? I just want when the enemy is killed to randomly spawn a med pack lets say 30% chance of getting one...
its the same yea as littlestain told you
enemie on destroyed
system set (name of your var) choose(1,1,2)
compare variable (name of your var)=1 enemy spawn another object : medikit
increase or decrease the number 1 for the %chance
Thanks I'll give that a try. I appreciate it.
Took A bit but I got it worked out... This worked perfectly.