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.
  • The Helper The Helper:
    Happy Hump Day!
  • V-SNES V-SNES:
    Happy Friday!
  • cubanral cubanral:
    agreed!
  • The Helper The Helper:
    Friday Yay!
  • mgarcia mgarcia:
    did you guys catch Carl's interview? https://www.youtube.com/watch?v=kuHiMXABkGs
  • mgarcia mgarcia:
    he's the one that informed me about the DVD's working!
  • mgarcia mgarcia:
    he also mentioned the progress on the controllers!
  • The Helper The Helper:
    I did actually it was cool to see the NUON mention
  • The Helper The Helper:
    https://discord.com/channels/985377399338332202/985377399950696481 you can still use this chat too we are two fisted now :)
  • thewrongvine thewrongvine:
    costs me $80 to fill gas tank sad face
  • Ghan Ghan:
    Oof
  • The Helper The Helper:
    Yeah that gas is some expensive stuff :)
  • The Helper The Helper:
    ghan does not have to worry about it he has a tesla and I have a small tank so it does not cost me usually more than 50
  • The Helper The Helper:
    fyi Ghan we are getting an error trying to access stats or world editor tutorials Error 526 Ray ID: 72128c6bf99f6707 • 2022-06-26 02:35:15 UTCInvalid SSL certificate
  • Ghan Ghan:
    An artifact of switching to Cloudflare... the Let's Encrypt certs can't autorenew through Cloudflare.
  • Ghan Ghan:
    I got the forum updated before things expired but there were some other casualties.
  • Ghan Ghan:
    Everything should be fixed now....
  • The Helper The Helper:
    Thank you Ghan!
  • The Helper The Helper:
    Happy Monday!
  • The Helper The Helper:
    new NUON forum mod cubanral!
    +1
  • The Helper The Helper:
  • tom_mai78101 tom_mai78101:
    Started learning how to make tools-assisted speedruns, so I'm lately busy.
  • tom_mai78101 tom_mai78101:
    Here's my current project.
    +3
  • O Old Mountain Shadow:
    that was pretty good!
  • jonas jonas:
    really cool! I saw the game before but always thought it's just a half as good double dragon. Now I realize it actually has a lot of depth!

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top