• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[General] I made walls but units can walk through them

Status
Not open for further replies.
Level 2
Joined
Apr 4, 2020
Messages
16
I have walls but units can walk through them at the edges. I increased the pathing - collision size but that did not seem to work so I increased it again and that still doesn't seem like it has an effect. I would think that was the right thing to do but idk... What should I change if I want them to be barriers that units cannot walk through?
 
They need to be structures with pathing maps.

There's a thread here explaining the math but units have a maximum collision size Pathing - Collision Size values into real values?

For your use case I would use a doodad pathing map matching whatever angle it is. You'll have to make a unit for every angle just like they did originally in the editor.

upload_2020-4-19_7-14-9.png


Edit: also, they need to be made from unit structures to have the correct object fields with pathing map; unless you have a custom WE simply changing a unit to "is a building" won't add the right fields.
 
Are they buildings, units, or doodads? If they are buildings or doodads you will want to change their pathing. Press P in world editor to see the pathing map on the ground. Blue means unbuildable, pink means unwalkable, teal means unflyable etc. there should be some good pathing tutorials somewhere.

Basically you just have to find the appropriate pathing map for your doodad in the object editor. Select Pathing - Pathing Texture.

Edit: Planetary beat me to it
 
ok well it was a matter of changing the pathing map, but stone wall is not an option in this version.. idk if that screenshot is from an older version of the campaign editor or something, so I used Magical Pen <base>. I also have a vertical wall. Which pathing map should I use for that?
 
so I used Magical Pen <base>
This is hollow so units could blink inside.

I suggest turning on the pathing overlay in World Editor and looking at the various pathing maps. You want solid ones that match your wall model geometry. You might have to make and import your own if the standard ones are not sufficient.
 
actually when I turn on the pathing overlay I can see that the pathing map seems to do just what I want. Units can blink past the walls so that is fine.
You might have to make and import your own if the standard ones are not sufficient.
How? What program would I make them in and what would they be if not just mathematical calculations? I did get this pre-made pathing map to work for this but just in case I need to make more in the future, how do I do that?
 
actually when I turn on the pathing overlay I can see that the pathing map seems to do just what I want. Units can blink past the walls so that is fine.

How? What program would I make them in and what would they be if not just mathematical calculations? I did get this pre-made pathing map to work for this but just in case I need to make more in the future, how do I do that?
IIRC the pathing maps are small .tga files (that i believe you still need to import in BLP) that appear invisible upon opening with an app other than GIMP. It's possible to work with PDN on those, albeit tricky. 8x8Simple.tga is one of the pathing textures, with one pixel wide hollow square of unbuildable (blue) on the border, and inside it unpathable (purple)
 
Status
Not open for further replies.
Back
Top