• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Terrain Amount

Status
Not open for further replies.
Level 5
Joined
Nov 4, 2006
Messages
132
Is it possible (preferably with GUI) to detect how many squares of certain types of terrain are in a region, because you will be able to change the terrain and I want certain triggers to activate if you have certain amounts of terrain in your area.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
You can't check where a terrain block ends or starts. You can however check whats the size of your trigger.

Every terrain block is 128x128 warcraft blocks, so multiply the length and width of your region, then divide it by 128 and it will give you the number of blocks that could possible be in it.
 
Status
Not open for further replies.
Top