• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] water platform

Status
Not open for further replies.
Level 15
Joined
Jan 16, 2008
Messages
1,244
NO, no, no. This si how i would do it. A unit constructs a building witch needs to be rounded by the wall. Then you create say 12 dummy units and order them to build a wall on a point with polar offset that is equal to 360/n of dummy units(of wall units) you assign those dummy units into an array and leter remove them from the game. It would also be a good idea to null the unit values inside the array once the construction is finished. It's not that complicated.
 
Level 15
Joined
Jan 16, 2008
Messages
1,244
Just capture the constructed unit from the 'finishes construction' event, check if it is a wall and force it to face away from the central building. You can calculate the facing angle easily, the only possible problem would be detecting the central building. You'd have to assign a global to it.
 
Status
Not open for further replies.
Top