Spawn Actor (Finished)
Mathiashelseth99
Member Posts: 37
Hi i wonder if it is possible to only spawn one actor in a random time???
Comments
game variable: spawnCount (integer)
inside the spawning actor add this behavior:
Timer: after random(0,5) // that's 0 to 5 seconds
rule when spawnCount < MAX (in your case MAX=1)
- spawn Actor
inside the spawned actor add this behavior:
change attribute game.spawnCount = game.spawnCount + 1