Please or Register to create posts and topics.

Turret Spawner Instance

Page 1 of 2Next

I made a turret spawner instance. It works when you have only one on the map. When I tried putting multiple ones of them on my map (giving them the same name), and triggering all of them, the game crashed.

Is there a way to do this without giving them unique names and adding individual outputs to the button for every single one?

I have tried spawning turrets and it worked fine for me. However I only had a max of 2 turrets at one time.
I remember in the HL2 engine you could use a parameter in the npc_maker to fix up name automatically. Perhaps this might be somewhere in the Portal engine.

?????????????????????????????TWP Releases | My Workshop

Why wouldn't you just give the instances unique names? Or do you have more then 50 spawners or something?

It doesn't matter how the entities are named within the instances but the instance has to have a unique name or none at all...

.:: [SP] Lost in Testing :: #1 :: #2 :: #3 :: #4 ::.

More like 10, but I would like to avoid extra work when it's not necessary. But I guess I have no choice.

if you create just one instance and name it turret_spawner_1 for example... then copy it and special paste it 9 times... you will have 10 copies, all numbered from 1 to 10.
And any output you would have to send to the instances would be as simple as creating 1 output string, copying it 9 times and just choosing the appropriate numbers for each copy.

.:: [SP] Lost in Testing :: #1 :: #2 :: #3 :: #4 ::.

I didn't know about special paste. I'll have to remember that next time. (I already numbered each one.)

Thanks.

I've made turret spawners in a few maps of mine, however I didn't make them into instances. I just pressed "Shift" and "Arrow Key" to copy and paste the npc_maker. Maybe you ought to try making turret spawners without saving them as instances.

Crazy is as crazy does.
My Work
[spoiler]Maps:
Revenge of the Angry Turrets
Capture the Cube [Co-op]
Capture the Cube 2 [Co-op]
TPWEGTH Sample Map
Aperture Aquatic Testing Center
Aperture Aquatic Testing Center 2
Aperture Time Testing Center
ML's Halloween Trick - 1000 downloads!
ML's Halloween Treat
ML's Combination - 1000 downloads!
ML's Jailbreak Labyrinth
ML's Tricky Teamwork [Co-op]
WIP:
"Capture the Cube 3"
Workshop Maps Link: http://steamcommunity.com/profiles/76561198008890579/myworkshopfiles/[/spoiler]

I got it to work already, thanks anyway.

MasterLagger wrote:
I've made turret spawners in a few maps of mine, however I didn't make them into instances. I just pressed "Shift" and "Arrow Key" to copy and paste the npc_maker. Maybe you ought to try making turret spawners without saving them as instances.

The whole reason instances are there is so you can save time whenever you have to place the same brushes/entities over and over again... the func_instance was introduced especially for situations like these :P

So, keep using them func_instances! :D

.:: [SP] Lost in Testing :: #1 :: #2 :: #3 :: #4 ::.

Do custom instances (say the Turret Spawner for example) need to be packed into a VPK file so other people can play them on a map?

Crazy is as crazy does.
My Work
[spoiler]Maps:
Revenge of the Angry Turrets
Capture the Cube [Co-op]
Capture the Cube 2 [Co-op]
TPWEGTH Sample Map
Aperture Aquatic Testing Center
Aperture Aquatic Testing Center 2
Aperture Time Testing Center
ML's Halloween Trick - 1000 downloads!
ML's Halloween Treat
ML's Combination - 1000 downloads!
ML's Jailbreak Labyrinth
ML's Tricky Teamwork [Co-op]
WIP:
"Capture the Cube 3"
Workshop Maps Link: http://steamcommunity.com/profiles/76561198008890579/myworkshopfiles/[/spoiler]
Page 1 of 2Next