• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Place units/structures on a grid?

Status
Not open for further replies.
Level 3
Joined
Jun 11, 2005
Messages
34
I have a gridded map, which consists of 9x6 squares. I want to put each unit/structures (they are units, but since they won't be moving anyway they can easily be structures) on each square.

The idea is the following: an Instant build mechanism (though with cooldowns, like a mercenary from campaing) but when you build this unit/structure, I have to place it on a square from the grid. It will be placed on the CENTER of the square, and you can't placed another thing on that same square unless you remove the unit in it (or it dies).

Tips to do this properly? Or could you point me to the right direction =D ?
 
Level 9
Joined
Mar 27, 2009
Messages
309
Oh boy, i remember when i was working on Industrial Giant for warcraft 3... The only way to really force building to grids is by using a placement system based off the directional pad.

And in my case all resources had to be spawned on the grid, which would crashed the game if the array was allowed to go on for too long.
 
Status
Not open for further replies.
Top