• 🏆 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!

[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