Page 1 of 1
nonsolid
Posted: Mon Aug 18, 2003 12:20 am
by SlasherZ
i'm a total scripting newbie... how do i give a brush a targetname and what command do i use to make a brush nonsolid? thanks in advance
Posted: Mon Aug 18, 2003 12:59 am
by Alcoholic
you do targetnaming in the editor (usually) by making it an entity, selecting it, pushing N, going to the key dialog, and typing "$targetname" and then going to value, and type in whatever you want to name it, then push enter. in the script, whenever you want to make it not solid do this:
$targetname notsolid
use the targetname you gave, and put a $ before it.
Posted: Mon Aug 18, 2003 8:32 am
by bdbodger
By make it an entity you mean a script_object don't you ?
Posted: Mon Aug 18, 2003 10:25 am
by SlasherZ
thanks
Yes
Posted: Mon Aug 18, 2003 12:13 pm
by tltrude
Yes, although any type of entity can be made nonsolid. Maybe this will help:
Highlight the brush and hit key N to bring up the entity window. Find script_object on the list of entities and double click it. Next find the NOT_SOLID check box and click on it. Hit key N again to close the window.
Doing it that way, there is no need for a targetname--unless you want to change it back and forth in the script.
Note: The texture can be made non-solid too--using the suface inspector (key S). If that works, there will be no need to make the brush an entity.