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
Basic scripting question (I think)
Moderator: Moderators
-
Krane
- Lieutenant General
- Posts: 782
- Joined: Sat May 31, 2003 4:18 pm
- Location: California, USA
- Contact:
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...
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...
remove
You can also remove them if they are not needed anymore.
$brush1 remove
$brush2 remove
$brush1 remove
$brush2 remove



