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

Terraining and/or Object Editor problem...

Status
Not open for further replies.
Level 14
Joined
Aug 8, 2010
Messages
1,022
Hello! I have a problem with trees, but i don't know why this happens (perhaps it's normal). So in my map i want some kind of... "road" to be separated from a foresty place trough trees. How can i do with a small amount of trees? Just see that picture and tell me if you know how i can make the creeps not chase my hero and not be visible when the hero is on the "road".

Help is appreciated with a +rep!
 

Attachments

  • daayum.jpg
    daayum.jpg
    453.2 KB · Views: 128
Level 33
Joined
Mar 27, 2008
Messages
8,035
Well, the only way that I can think is creating regions along the pathway and when the unit is trying to attack a unit inside that region, just cancel its order

  • Cancel Attack Region
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Set CurrentLoc = (Position of (Triggering unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Cancel Attack Region <gen> contains CurrentLoc) Equal to True
        • Then - Actions
          • Unit - Order (Attacking unit) to Stop
        • Else - Actions
      • Custom script: call RemoveLocation(udg_CurrentLoc)
If your pathway contains many location in the map and not a straight-line (you can't bend regions), therefore just use OR Conditions.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
That's what I meant too, if you pre-set change the Range, it will affect the game, forever.

Unless, once you have passed the pathway, you can then change their Acquisition Range back to normal (for aggro, unless you want to see those ranged units do nothing except starting you at the face)
 
Level 14
Joined
Aug 8, 2010
Messages
1,022
Hell no I've tested it, no creep is seen at all.
Hm... perhaps they become visible when they attack. If this is true, then if the creeps don't attack, i won't be able to see them.. I'll try right after i come back from the gym! :)

EDIT : It worked. With acquisition range of 100, the creeps don't attack the hero on the passageway and are not visible. Well... if i am at other side (not on the passageway) the creeps still don't attack, but that is actually what i wanted in my map, so everything is OK! :]

+rep given to kari0003. Thanks! defskull, MortAr, i have to spread some rep before giving you again :/
 
Last edited:
Status
Not open for further replies.
Top