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

Buildable Moat

Status
Not open for further replies.

ndh

ndh

Level 8
Joined
Apr 21, 2012
Messages
344
Hey, for my current project i would like to add buildable moats. I'm not quite sure how to accomplish this, but here is a screenshot to help you understand what i am trying to achieve.
images
Just some random image i found through Google.
It should be unpathable and when destroyed it fills up with dirt or something and becomes walkable again. Any help would be appreciated.
 
Last edited:

Deleted member 177737

D

Deleted member 177737

Actually this might be possible with some triggers and a water pane model...

-Create unit with the pathing of a tower and set the model to be a pane of water floating in the air.

-Trigger it up so when you build the "moat" on a piece of land the land that it is on is pushed down into the ground so that the water pane model will appear to be in the ground. Then, because the unit is using the tower's pathing it would prevent units from passing it to.

(I just wrote it as I thought it. But this is indeed possible to do.)
 

Deleted member 177737

D

Deleted member 177737

Ehh I'll see what I can do, I haven't done much with changing terrain through triggers.

Edit: I did up some basic triggers just to show the idea, it should work with the right model.
 

Attachments

  • Test.w3x
    16.4 KB · Views: 37
Status
Not open for further replies.
Top