one actor destroy another? how do you use 'otherwise'?
Let's say i have a tank. 1 body actor, and turret actors(so the main gun and machine gun, or rocket launcher, etc. will be different locations with the main shooting big tank bullets and the machine gun bullets, rocket launcher missiles, etc). The reason i have multiple turrets on the tank is so the different attacks come from different locations. And having each weapon on a different actor i can spawn them randomly, so one time the tank will have 1 main gun and 2 machine guns, or 3 rocket launchers, or 3 main weapons. Just to add another dimension and keep the player on their toes.
The turrets don't take damage, but when the tank dies, the turrets need to despawn with it. Right now I have a rule inside each turret that when the tank dies, despawn the turrets.
Which works BUT if i have 2 tanks on the screen 1 tank blowing up despawns all the turrets on all the tanks. So i had to make each tank a separate actor, so Tank1, Tank2, Tank3. And then make a separate turret for each tank and seperate one for each weapon, so turret1a(main, turret1b(main), turret1c(main), turret2a(machine gun), turret2b(machine gun) and turret2c(machine gun), turret 3a(rocket launchcher) etc. So when tank1 dies it tells just turret1's to despawn.
Which works BUT if I have 5 TYPES of tanks.... You see where I'm going?
Is there a way to have more than 1 tank, and each tank have 2-4 turrets, but not have 39874786 turret actors?
Any suggestions on making this easier would be REALLY appreciated.
Thanks,
PJ
The turrets don't take damage, but when the tank dies, the turrets need to despawn with it. Right now I have a rule inside each turret that when the tank dies, despawn the turrets.
Which works BUT if i have 2 tanks on the screen 1 tank blowing up despawns all the turrets on all the tanks. So i had to make each tank a separate actor, so Tank1, Tank2, Tank3. And then make a separate turret for each tank and seperate one for each weapon, so turret1a(main, turret1b(main), turret1c(main), turret2a(machine gun), turret2b(machine gun) and turret2c(machine gun), turret 3a(rocket launchcher) etc. So when tank1 dies it tells just turret1's to despawn.
Which works BUT if I have 5 TYPES of tanks.... You see where I'm going?
Is there a way to have more than 1 tank, and each tank have 2-4 turrets, but not have 39874786 turret actors?
Any suggestions on making this easier would be REALLY appreciated.
Thanks,
PJ
Comments