Multiple enemies attacking at the same time
ErnstK
Member, PRO Posts: 24
Hi guys
Just trying to get me head around the following:
I have a static hero actor when hit/collide by an enemy it will lose 10 hit points every 1 second until the enemy is dead (or till the enemy does not collide anymore), now I'm struggling when I have multiple enemies hitting/colliding - then every enemy should subtract 10 hit points every 1 second (timing from when they collide with the hero actor).
The number of enemies attacking is very much random and the enemies are all the same actor (spawned multiple times)
Anybody with any advice would very much be appreciated
#Edit - just gonna let every enemy actor spawn on collision a small actor to do the logic
Cheers
Ernst
Just trying to get me head around the following:
I have a static hero actor when hit/collide by an enemy it will lose 10 hit points every 1 second until the enemy is dead (or till the enemy does not collide anymore), now I'm struggling when I have multiple enemies hitting/colliding - then every enemy should subtract 10 hit points every 1 second (timing from when they collide with the hero actor).
The number of enemies attacking is very much random and the enemies are all the same actor (spawned multiple times)
Anybody with any advice would very much be appreciated
#Edit - just gonna let every enemy actor spawn on collision a small actor to do the logic
Cheers
Ernst