• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Terrain trigger

Status
Not open for further replies.
Level 39
Joined
Feb 27, 2007
Messages
5,034
No, but if the number of units (or unit types) you need to track is relatively small you could put them in a group and periodically check the terrain tile beneath them. A hybrid approach would also work where you put a large region around an area that has some of the terrain tile. When a unit enters that region, add it to the group to check the tile beneath it, and when it leaves the region remove it from the group. Do the same for other general areas that use the tile.
 
Level 8
Joined
May 21, 2019
Messages
435
No, but if the number of units (or unit types) you need to track is relatively small you could put them in a group and periodically check the terrain tile beneath them. A hybrid approach would also work where you put a large region around an area that has some of the terrain tile. When a unit enters that region, add it to the group to check the tile beneath it, and when it leaves the region remove it from the group. Do the same for other general areas that use the tile.
I seem to faintly recall reading somewhere on this forum that there was a known performance issue with checking terrain tiles. Am I totally off base here?
 
Status
Not open for further replies.
Top