Basic scripting question (I think)

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Basic scripting question (I think)

Post by Mj »

Umm, I'm pretty new to the world of scripting, so im not acually sure if this is basic or not, but...

How can i make two brushes dissappear in one place, and two appear somewhere else?

Thanks in advance,

Mj
ImageImage
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Make the brushes script_objects and give them a targetname. Then, you have to hide the brushes that will show up later:

main:

$brush3 hide
$brush4 hide

thread mybrushes

level waittill prespawn

level waittill spawn

end

Then, in a thread:

mybrushes:

$brush1 hide
$brush2 hide

$brush3 show
$brush4 show

end

The brushes 3 and 4 must be hidden before the map loads, so u can show them later...
Image
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post by Mj »

Thanks a lot, I owe you 1

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

remove

Post by tltrude »

You can also remove them if they are not needed anymore.

$brush1 remove
$brush2 remove
Tom Trude,

Image
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post by Mj »

Great! thanks a bunch! :D

I like this forum everyones really helpful 8-)

Mj
ImageImage
Post Reply