Make Unit go trough everything except Doodads

Exuro.

New Member
Hey

ive now had this running for a long time in the normal helper section, and we have absolutly found out of nothing :D

I need my peasant to be able to go trough every building, but not Doodads..


Things that dont work:
Flying aint an option
Aura´s on towers turning collision off for nearby units
Ghost(visible)
Collision changes
No Pathing map
etc.

We have tried a lot and no solution..


So, can someone please help me and tell me if this is possible in JASS?
Make the unit go trough buildings but not doodads/destructibles?
 

Romek

Super Moderator
Staff member
Well, everything except doodads is just buildings isn't it?

Maybe you could give all buildings a collision size of 0?
 

Exuro.

New Member
alrdy been trough all that :)

Will take long time to go trough it all again so if you wish you can read the thread heh:

Link


:D
 

Builder Bob

Live free or don't
I would say make the peasant fly again, but then you'd shut it down as something that doesn't work.

Instead, here's a map featuring:
  • Footmen blocked by both buildings and doodads
  • Peasants blocked only by doodads


Edit: Additionally, if you want doodads/buildings that only footmen can go through, use the pathing color Cyan.

Here's a link you might be interested in: Pathing Map Types
 

Exuro.

New Member
hmm never rly thought of it that way.. think the flying is working.. will have to test thou :)


but thanks a lot for the good explanation and showing me trough that map..

EDIT: Cant give rep as i alrdy gave you lately hehe
 

Builder Bob

Live free or don't
No problem :)

Another solution you might be interested in that requires triggering, is one that uses the function SetTerrainPathable(x, y, pathingType, flag)

pathingType can be
  • PATHING_TYPE_AMPHIBIOUSPATHING
  • PATHING_TYPE_ANY
  • PATHING_TYPE_BLIGHTPATHING
  • PATHING_TYPE_BUILDABILITY
  • PATHING_TYPE_FLOATABILITY
  • PATHING_TYPE_FLYABILITY
  • PATHING_TYPE_PEONHARVESTPATHING
  • PATHING_TYPE_WALKABILITY
flag is true or false, to enable or disable the pathingType.

It would require some kind of system on your part to set the right pathing in the right places, but once it's made you can have a map without flying peasants.

Let's assume you don't use water in your map. Then you can set your peasants pathing type to amphibious, and enable PATHING_TYPE_AMPHIBIOUSPATHING wherever necessary. This won't enable PATHING_TYPE_WALKABILITY, so only the peasants will be able to pass.

Note: if I remember correctly, SetTerrainPathable() changes an area of 32x32
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    Would like to get some annual forum statistics report.
  • The Helper The Helper:
    there are stats in the xenforo forum admin section and we have matomo stats we started collecting beginning of the year so we will not have annual on that until next year
  • The Helper The Helper:
    I thought you had keys to the bathroom Tom? Ghan does Tom have access to the stats thread in the bathroom
  • The Helper The Helper:
    since I started jacking with the bots on the site we doubled our page views on the site in a week lol
  • The Helper The Helper:
    I have been having lots of fun
  • The Helper The Helper:
    we have had like 6000 views of the American Airlines economy class thread in the last week
  • The Helper The Helper:
    I ought to stick a travel affiliate link or something on that page to try and monetize that they are just going there and leaving it might even be bots I am not sure
  • The Helper The Helper:
    I just got into it with the Atari VCS Facebook Moderator I started trolling him and almost got banned
  • The Helper The Helper:
    They deleted one of my posts one time so I was trolling him on a help post I put up because I am evil I guess and bored and the guy handled it well I loved his attitude Atari has a good social media presence even if they do not have many games.
  • The Helper The Helper:
    The French Atari they call them even though they are like totally based in America they just have French Money coming in. Gotta love it
  • Ghan Ghan:
    Microsoft buying Activision Blizzard holy crap!
  • The Helper The Helper:
    I know right holy cow
  • Accname Accname:
    Thats not going to save it.
  • The Helper The Helper:
    It might
  • The Helper The Helper:
    They are going to use alot of that IP in the Metaverse
  • The Helper The Helper:
    I found a new section of the stats that is freaking interesting!
  • The Helper The Helper:
    oh yeah this is what I was looking for good job matomo! These are some sweet stats I am learning the interface on it too!
  • The Helper The Helper:
    If anyone ever asks later how I found out about it was watching the site bots but not watching what they were doing but asking myself why they were here?
  • The Helper The Helper:
    there must be a reason and ok that is it
  • The Helper The Helper:
    the past and the future all come together into one
  • The Helper The Helper:
    the search engines are what built thehelper.net the search engines will make it big again maybe
  • The Helper The Helper:
    the real question is are 5 million links better than 60 real good links?
  • The Helper The Helper:
    the answer is 60 lol
  • The Helper The Helper:
    unless you put 100k links on it lol then you get something

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome
    Top