I need to select a random object from several objects of the same type
We have a condition to select a random object but how to exclude objects with some variable value?
like
Pick random instance "Enemy"
"Enemy" variable "dead" = 0
Develop games in your browser. Powerful, performant & highly capable.
You can add several conditions together, you can do this with those you mentioned to filter the instances. Or one can be a sub event. Did you try this?
Oh, everything is easy
I just needed to put the variable above the "pick random instance" to make things work right
Correct