Page 1 of 1

Hiding

Posted: 04 Jun 2008, 02:22
by Alchemist
Is there a way to hide a certain part of a unit using COB and then showing it again? All of this using just COB.

Also, how would I hide an object from Upspring?

Re: Hiding

Posted: 04 Jun 2008, 02:30
by Argh
Um, you can't hide stuff in UpSpring, at all.

But you can hide stuff in BOS, it's easy.

Just write "hide piecenum;", where piecenum == whatever the name of the part it is you're hiding. To show it, it's "show piecenum;". Simple, eh?

Re: Hiding

Posted: 04 Jun 2008, 02:35
by Alchemist
Ah, that is rather simple. Thanks again!

Re: Hiding

Posted: 04 Jun 2008, 04:29
by Gnomre
Without knowing entirely what you're doing, one trick you can do to 'hide' a piece in upspring is move it to -1000 on the y-axis and then in Create() move it to [1000] (or [2500] IIRC if you haven't fixed your linear settings to match upspring rather than TA) to "show" it. It can be useful on buildings when their ghost mode looks retarded with certain pieces visible.

Re: Hiding

Posted: 04 Jun 2008, 08:06
by KDR_11k
[400] actually.

Re: Hiding

Posted: 04 Jun 2008, 08:24
by Gnomre
I forgot which way it was. Corrected all our scripts months ago :P