I'm trying to make a rigged lootbox as a joke for a game and i have the feeling i can do this by having a function that calls a random number and what ever number is called a certain number is spawned but i don't know how to make it happen.
On interact with box : call function "Loot" with parameter "choose(1,2,3,4)"
On function "Loot"
sub event > if param 0 = 1 : spawn object A
sub event > if param 0 = 2 : spawn object B
etc
Develop games in your browser. Powerful, performant & highly capable.
Thanks