Page 1 of 1

Basic scripting question (I think)

Posted: Fri Apr 30, 2004 8:28 am
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

Posted: Fri Apr 30, 2004 9:31 am
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...

Posted: Fri Apr 30, 2004 10:04 am
by Mj
Thanks a lot, I owe you 1

Mj

remove

Posted: Fri Apr 30, 2004 10:35 am
by tltrude
You can also remove them if they are not needed anymore.

$brush1 remove
$brush2 remove

Posted: Fri Apr 30, 2004 12:27 pm
by Mj
Great! thanks a bunch! :D

I like this forum everyones really helpful 8-)

Mj