Spawning turrets

Avatar
Xtreger
216 Posts
Posted Apr 06, 2012
How to ensure that a replacement turret is spawned if the current one is destroyed or deactivated? I tried searching but to no avail.
If there are tutorials, I'd appreciate if their links are also given..

Thanks in advance

Advertisement
Registered users don’t see ads! Register now!
Avatar
Lpfreaky90
2,842 Posts
Posted Apr 06, 2012
Replied 1 hour later
Create a turret; give him a name; let's call him turry
Create a point_template; call it turry_template.
Type in turry by template 1

create a env_entity_maker; call it turry_spawner.
Set Point_template To Spawn to turry_template.

Now go to turry and give him OnTipped;!self;SelfDestructImmediately
OnExplode;turry_spawner;ForceSpawn

Hope that helped :smile:

Avatar
BenVlodgi
633 Posts
Posted Apr 09, 2012
Replied 2 days later
also, I dont think I see a logic auto in there... but you'll need to forcespawn turry when the map starts... or... when ever you want him to appear for the first time
Avatar
Lpfreaky90
2,842 Posts
Posted Apr 09, 2012
Replied 48 minutes later

BenVlodgi wrote:
also, I dont think I see a logic auto in there... but you'll need to forcespawn turry when the map starts... or... when ever you want him to appear for the first time

Yeah you're right Ben.

Either add a logic_auto to spawn it at map spawn or use a trigger to trigger it whenever you want to spawn yours.

Advertisement
Registered users don’t see ads! Register now!
Avatar
HMW
806 Posts
Posted Apr 10, 2012
Replied 1 day later
... or check the "don't remove entities on map spawn" flag. (I'm not sure it's called exactly that, but you'll know which one I mean.)