• 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.

[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