nonsolid

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
SlasherZ
Colonel
Posts: 433
Joined: Fri Jul 11, 2003 12:55 pm
Contact:

nonsolid

Post 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
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

By make it an entity you mean a script_object don't you ?
SlasherZ
Colonel
Posts: 433
Joined: Fri Jul 11, 2003 12:55 pm
Contact:

Post by SlasherZ »

thanks
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Yes

Post 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.
Tom Trude,

Image
Post Reply