Hiding

Hiding

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Alchemist
Posts: 81
Joined: 21 Oct 2005, 23:46

Hiding

Post 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?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Hiding

Post 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?
User avatar
Alchemist
Posts: 81
Joined: 21 Oct 2005, 23:46

Re: Hiding

Post by Alchemist »

Ah, that is rather simple. Thanks again!
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Re: Hiding

Post 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.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Hiding

Post by KDR_11k »

[400] actually.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Re: Hiding

Post by Gnomre »

I forgot which way it was. Corrected all our scripts months ago :P
Post Reply

Return to “Game Development”