Please or Register to create posts and topics.

Spawning turrets

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

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 :)

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



Also, I made a map just for you! Sunset
Click Here to view my Workshop and play my puzzlemaker maps
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.

... 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.)

Sendificate series: Sendificate | A Beam Too Far | Airtime | 302
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic