Jump to content
Sign in to follow this  
Veinlockx

Invisible Units?

Recommended Posts

I was wandering if there was a way to place units/groups on a map, have them invisible or otherwise not even there until tripped by a trigger?

Share this post


Link to post
Share on other sites

The correct way of doing it is to spawn the units when need, there are several ways to do this. Do a search for spawning. There's also the way you asked about.

If you have a group of men and the leader is named red you would place this in his init box.

{_x hideobject true;_x enablesimulation false} foreach units red

To reveal them in a trigger you would put this in the on act box

{_x hideobject false;_x enablesimulation true} foreach units red

You have to decide how and when you set the trigger to activate.

The reason spawn is better is that it doesn't tie up resources when not needed.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×