Non-solid brush
Moderator: Moderators
-
Random Error
- Lance Corporal
- Posts: 10
- Joined: Wed Jun 05, 2002 9:04 am
- Location: Netherlands
Non-solid brush
How do I make a non-solid brush?
-
Random Error
- Lance Corporal
- Posts: 10
- Joined: Wed Jun 05, 2002 9:04 am
- Location: Netherlands
In a bunker I have a small edge at the bottom of the wall, to make it look nice. But that little edge makes it very hard to jump out over the wall in the gun emplacement. I want to keep the edge, because it looks nice, but if I can just make it non-solid, the players can still jump out the window like before I put the edge in. It isn't thouching the void.
-
Random Error
- Lance Corporal
- Posts: 10
- Joined: Wed Jun 05, 2002 9:04 am
- Location: Netherlands
The edge is 4 units high and 2 units wide. I'm trying to add a screenshot to this post.
http://www.geocities.com/hazardum/edge-screenshot.jpg
http://www.geocities.com/hazardum/edge-screenshot.jpg
-
Random Error
- Lance Corporal
- Posts: 10
- Joined: Wed Jun 05, 2002 9:04 am
- Location: Netherlands
-
NathanielPT
- Corporal
- Posts: 43
- Joined: Sun Jul 07, 2002 3:35 pm
- Location: USA/Africa
- Contact:
I should have thought of this earlier, but you can set a brush as not solid by using a script. All the brushes you want to be not solid need to be "script_objects". Then in your script you use "$targetname nonsolid". The following script assumes all the brushes have "$targetname" of "nonsolid". You then call this thread before "waitTill spawn". It will set all your brushes with a "$targetname" of "nonsolid" to be "notsolid". I hope this helps. Oh, I haven't tested this script so I'm not sure that it will work, but it should, if not, it should be enough to get you going.
Code: Select all
makenotsolid:
if ($nonsolid == NULL)
local.nonsolids = 0
else
local.nonsolids = $nonsolid.size
if (local.nonsolids > 0)
{
for (local.i = 0; local.i < local.nonsolids + 1; local.i++)
{
$notsolid[local.i] notsolid
}
}
end
--NathanielPT--