I have this script for spawning actors randomly, but I want one actor to have a higher chance to spawn than the others.
(Actor 1-60% to spawn) (Actor 2-30% to spawn) Actor 3-10% to spawn)
For something that simple, this should be enough:
For something more complex - the method will depend on complexity.
But most importantly here, avoid using Tick + Delay for things like that - there’s no need to test anything 60 times per second and flood it. A timer as demonstrated above is a much more manageable solution. You can alter Time and use Timer Handle to stop it.
1 Like