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

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