• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Creating buildings on uneven ground via triggers

Status
Not open for further replies.
Level 4
Joined
Jul 11, 2007
Messages
82
I'm using a script to replace buildings on my map, but they don't always spawn in the exact location when I use "CreateUnitAtLoc" because the ground is slightly uneven or something like that. What do I do to allow buildings to be placed on the exact point I specify, regardless of terrain?

I need to keep their pathing maps, but do I change "Pathing - Collision Size" or "Pathing - Placement Requires" ?
 
Collision size will help, but what do you mean by uneven? Do you mean that there are raised cliffs in the area or that the terrain is simply raised or lowered in a few spots (non cliff)?
 
There aren't cliffs, but it's just bumpy grounds will small hills and valleys (hardly even noticeable). It's also possible that some are too close to the water.
 
If the ground is simply bumpy then the building is going where it naturally would, uneven or not, but buildings have a tendency to be placed in grids, so it might look like its not going exactly where you want it, but it is placing itself on the grid as close to the point as you want it to be in.
 
Ok, I've turned down the collision size to 0. I understand that buildings need to be placed on grids and that's not a problem. Unless anyone has anything else to add, I think I've got it.
 
Status
Not open for further replies.
Back
Top