• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] About pre-placed buildings

Status
Not open for further replies.
Level 16
Joined
Aug 7, 2009
Messages
1,406
*SOLVED*
(Check out my last post if you need the solution)

---

Is it possible to make pre-placed computer-owned buildings initially visible? So that whenever you enter the game, you would see every other computer-owned buildings on the map instead of having to explore the map to find them.
 
Last edited:
Level 9
Joined
Apr 19, 2011
Messages
447
I think you can do it with a simple trigger.
At map initialization, do the following:
Player - Set Alliance
There, make yourself treat the computer player as an "Enemy with shared vision" if this player is an enemy, or as an "Ally with shared vision" if the player is an ally.
I'm not very good with triggering, but I think that should work. If it doesn't, then probably someone else will be able to give you a solution.
I hope this helped.

Regards
 
Level 14
Joined
Oct 6, 2008
Messages
759
So you want to be able to see the markings on the minimap, but the graphics of the buildings to be still invisible? I can't understand...

Try making a trigger that will pick every enemy building and make a visibility modified region at the center of each of them with size 1x1 and instantly remove them. I think that shoud reveal the buildings on the minimap while they remain hidden in the game.
You can make a trigger run after each new building is completed with the same thing to reveal any future builds. Also if you want to see when buildings are destroyed and you dont want to explore ...do the same but with event á unit dies' 'triggering unit is a building equals true' etc.
 
Level 16
Joined
Aug 7, 2009
Messages
1,406
No, their graphics and minimap markings should be both visible. But adding shared vision will make me be able to see everything that those buildings can see, and that's bad.

I've already tried visibility modifiers, they didn't work.
 
Level 16
Joined
Aug 7, 2009
Messages
1,406
Nope, not yet, I didn't intend to swarm the map like that. First I think I'll try a delayed, one second long visibility modifier and we shall see how it works out. If that doesn't work, and if noone will come up with an easier solution, I'll try using dummies.

EDIT: okay, the one second visibility modifier worked. Case solved.
 
Status
Not open for further replies.
Top