View Full Version : a func_breakable respawn?
CaseyD
02-22-2008, 05:49 PM
is it possible to do this?
I want a glass window to respawn after a certain time. I've tried to do this the same way as health packs (with a point template, entity maker, logic timer, and logic case) but the window doesn't spawn at all.
Any ideas?
CaseyD
02-22-2008, 08:48 PM
Ok, figured it out.
Heres how:
I made the glass just like any func_breakable (dont do func_breakable_surf though... you need to do something different to use this texture)
Give it a name. I named mine Window_1
Then, add the entity point_template. Give it a name. I named mine WindowMaker.
Under template 1, select the func_breakable name. (Window_1 in my case)
Now select the brush (Window_1) again.
Set these outputs--
My output named: On break
Target Entities named: WindowMaker
Via this input: ForceSpawn
With a parameter override of: <none>
After delay in seconds: (however long you want to wait before it comes back)
Ok now heres the trick...
Add the entitiy logic_auto
Set these outputs--
My output named: OnMapSpawn
Target Entities named: WindowMaker
Via this input: ForceSpawn
With a parameter override of: <none>
After delay in seconds: 0
And that's it! Respawning glass! Hope this helps others.
DrHaphazard
02-23-2008, 04:11 PM
Pretty darn clever Casey, and I am considering having a similar situation in one of my maps. Nice work.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.