Forum

tie a brush to an entity?

Discuss the construction of maps and the tools to create maps for 3D games.

Moderator: InsideQC Admins

tie a brush to an entity?

Postby ThePlasticBling » Sat May 07, 2011 11:40 pm

hi. I want to make a wall in worldcraft and tie it to an entity. but when i do and then test it, the wall isnt there.

this is what i want to tie it to:

Code: Select all
void() notwall =
{   
   self.solid = SOLID_BBOX;
   self.classname = "invalidwall";
};


but when i tie a brush to an entity called notwall, it doesn't show up
ThePlasticBling
 
Posts: 51
Joined: Fri Jun 04, 2010 10:18 pm

Postby frag.machine » Sun May 08, 2011 10:28 pm

func_wall ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby Spike » Mon May 09, 2011 1:26 am

you need setmodel(self, self.model);
or the modelindex is not set.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: tie a brush to an entity?

Postby Baker » Mon May 09, 2011 4:40 am

ThePlasticBling wrote:hi. I want to make a wall in worldcraft and tie it to an entity. but when i do and then test it, the wall isnt there.

this is what i want to tie it to:

Code: Select all
void() notwall =
{   
   self.solid = SOLID_BBOX;
   self.classname = "invalidwall";
};


but when i tie a brush to an entity called notwall, it doesn't show up


This is a case of not explaining yourself properly like MH complained about with forum getting "bad questions" that don't really explain themselves. You have problem X and decided solution Y is the way and are asking about Y.

You aren't trying to make a brush into an entity, all you have to do is select a brush in Worldcraft and convert it to a func_wall or a func_door and that works fine. In fact, you already got this to work fine ... the brush is, in fact, an entity and not part of the world which is why it isn't showing.

What is it you are actually trying to do that isn't working?
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest