Help with glass (Break and after timer respawn)

  • If you're asking a question make sure to set the thread type to be a question!

JantsoP

L1: Registered
Aug 28, 2013
23
0
So im editing the ctf_vikings_final for my server and players have told that i need to make it so the glass respawns after a certain ammount of time or its way too easy. I have tried whole day for this but still havent got proper working respawn for glass. So can anyone help me with this?
 

Egan

aa
Feb 14, 2010
1,375
1,720
As I told you in chat,

While the glass brush is selected, hit Ctrl + T. this turns the brush into an func entity, change it from a func_detail to a func_breakable, name it, and click the Outputs tab. Click Add.. OnBreak glassTemplate ForceSpawn (after a delay of) 30.

Now create a point entity as a point_template. change its name to glassTemplate and in one of the template keyvalues place the name of your func_breakable.

So the whole thing goes: glass onbreak template forcespawn, which spawns in another glass 30 seconds later.

Edit for the sake of information:
you're going to need another point entity called logic_auto outputs onMapSpawn template forcespawn since point_templates aren't autospawned
 
Last edited:

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
Edit for the sake of information:
you're going to need another point entity called logic_auto outputs onMapSpawn template forcespawn since point_templates aren't autospawned
Nay, point_template has a flag for "do not remove template entities" that leaves the originals in place.