classname


(stebbi67) #1

Hi.

Just some noob question. If I have brushes that I want to make invisible, by script after a contition has been filled, what should these brushes have for entity classname?
They should not be destrutable so I can not have the classname func_explosive.

Thanks,

Stebbi67


(-SSF-Sage) #2

Make them script_mover. Remember also add origin brush! Give it scriptname hideme and targetname hideme.

Then for script:

Somewhere in the spawn

setstate hideme default

just to make sure it will appear. I tend to think that better to be safe than sorry.

Now when you want to hide it, add this line to the specific trigger:

setstate hideme invisible

(stebbi67) #3

Sounds easy :slight_smile:

Would you also add classname script_mover and targetname hideme for the orgin brush?


(-SSF-Sage) #4

Include the origin brush to the script_mover. So make the brush, select it and select the brushes you want to hide-> make into script_mover and follow the rest. Oh yeah this is VERY simple. :slight_smile:

Also you might want to tick solid box for the script_mover in case it has to be solid. And the hideme was an example, can be almost anything ofc.


(isbowhten) #5

what about classname_explosive with health key 0 ? this works, too.
and you also can give the brush a origin key instead of making an origin brush.