Any way to change object/projectile visibility via script?

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
Isolder
Posts: 282
Joined: Mon Oct 19, 2009 11:55 am

Any way to change object/projectile visibility via script?

Post by Isolder »

You can do it with Units. It's real dandy.

I want to change object and/or projectile/scenery visibility through a map action.

Does anyone know of a way to do this?
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Re: Any way to change object/projectile visibility via script?

Post by A-Red »

Object Control, or OBCO. You can reveal all, reveal a random instance, or hide all instances of a projectile of a given type.

If you want a specific object to disappear and none of those flags will work, the best way is to have a CTRL give it to a hidden uncontrollable unit, thereby making it "disappear."
Isolder
Posts: 282
Joined: Mon Oct 19, 2009 11:55 am

Re: Any way to change object/projectile visibility via script?

Post by Isolder »

A-Red wrote:Object Control, or OBCO. You can reveal all, reveal a random instance, or hide all instances of a projectile of a given type.

If you want a specific object to disappear and none of those flags will work, the best way is to have a CTRL give it to a hidden uncontrollable unit, thereby making it "disappear."
Man, I don't know enough about scripting to understand why this isn't possible to do directly.

There's already an object_identifier that makes it possible to select individual objects. Why oh why isn't it possible to then make a generic action to switch the invisible flag in the marker of the objects in object_identifier on or off.

I also would like to be able to control Scenery objects. No identifiers for those though..

It feels like this should be possible.
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Re: Any way to change object/projectile visibility via script?

Post by A-Red »

No, you can't remove scenery objects, but technically you could make a projectile that looks just like scenery, use it instead, and remove it.
Post Reply