nonsolid
Moderator: Moderators
nonsolid
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
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.
$targetname notsolid
use the targetname you gave, and put a $ before it.
Yes
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.
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.
