No announcement yet.

Change delay value to enemies killed instead.

  • Filter
  • Time
  • Show
Clear All
new posts

    Change delay value to enemies killed instead.

    I am using the MVP VR Shooting Gallery tutorial to make a game. In it it has the below BP that uses a time delay to start a new wave. How would I change that to start a new wave when all the enemies have been killed instead?

    Click image for larger version

Name:	DelayPerWave.JPG
Views:	1
Size:	167.1 KB
ID:	1186002

    Instead of using the Timer to execute the Spawning of a Wave, use the EnemiesPerWave variable to determine when to Spawn a Wave.

    If EnemiesPerWave <= 0 then Spawn a new Wave.

    You would need to subtract 1 from this variable each time an Enemy dies however, so that you know when the Wave has been eliminated.
    Im an Moderator on UnrealSlackers Discord! Which is a Community driven group of likeminded people here to discuss UE4! Join UnrealSlackers on Discord!