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

ship unloading

Status
Not open for further replies.
Level 2
Joined
Aug 31, 2009
Messages
21
Hello,

In my map I have boats that unload units.
I want that the ships can't unload units on the rock tileset, but I can't figure out how to do this. I would very much appreciate if somebody could explain this to me.
I've seen this in the map Azeroth wars, you can't unload units on the rock tileset.
 
I don't know how you've set up the terrain, but this one will work;
  • DisableUnloadT
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Issued order) Equal to (Order(unloadall))
    • Actions
      • Set p = (Target point of issued order)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain type at p) Equal to Lordaeron Summer - Rock
        • Then - Actions
          • Unit - Order (Triggering unit) to Move To p
        • Else - Actions
      • Custom script: call RemoveLocation (udg_p)
 
Status
Not open for further replies.
Top