Page 1 of 1

Spawning Brushes

Posted: May 24th, 2011, 4:59 pm
by Opel
Is there anyway to spawn brushes made in radiant via script, like you can with models ?

Code: Select all

 
model = spawn( "script_model", ( 0, 0, 0 ) );
model setModel( modelname );
The only way i can really think of doing it is by making them in my map and just hide them and use show() when i need it but for what im doing i don't think it would be the best way.

Any help is appreciated, thanks.

Re: Spawning Brushes

Posted: May 24th, 2011, 5:41 pm
by Drofder2004
No.
Solid objects must be mapped.

(you can use the SetContents(1) but it is not a properly solid object and does not fit the shape you want)

Mapping the object and using moveZ or show/solid is the only real option.

Re: Spawning Brushes

Posted: May 25th, 2011, 7:50 pm
by Opel
Thanks for the info, i will try it later. Also is it possible to give diffrent brushes the same targetname and showing them through an array.

Code: Select all

brushes = getentarray( "brushes", "targetname" );
So i can pick one brush out of the ten i have. If you need more info just ask and i will try to explain better.

Re: Spawning Brushes

Posted: May 25th, 2011, 8:02 pm
by Drofder2004
Yes.

Re: Spawning Brushes

Posted: May 27th, 2011, 11:07 am
by waywaaaard
Maybe megazor shows his way his minecraft stuff. Isn't he spawning there brushes?

Re: Spawning Brushes

Posted: May 27th, 2011, 1:57 pm
by megazor
Maybe megazor shows his way his minecraft stuff. Isn't he spawning there brushes?
lol i wish i could spawn brushes... in my mod, i just "spawn" brushmodels:

Code: Select all

block.origin = (x, y, z);