Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Has anyone noticed that when you spawn a building using world builder your units can just go straight through?
I'm having some trouble, some of my maps, I have some civilian buildings and oil derricks that spawn whenever destroyed, but the problem is, units can go straight through them AND shoot through them, any idea how to stop this or use some technique?

I'm currently trying 2 things but not happy.
Make the land beneath impassable but this has 2 problems, units can still shoot through them and if it's a garrisonable building then they don't always garrison due to the impassable squares being to big.
I also tried putting a building below 0, this is good but then you can select the building itself so you would know something is there...

Any thoughts and help guys?
Sponsor
Unknown Editor
8 years ago
Well , Don't you think I didn't get it but plz Explain what you want once again (because I didn't get it)
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Lol, the top part was what I had a problem with, the rest is explanantion-ish.

If I put a script to spawn a grass hut or oil or China command centre etc, a building. They spawn but my units can walk through the buildings and even shoot through them. Anyway to stop this?
Unknown Editor
8 years ago
I don't know . In my own map I used Spawn Buildings but never had such a exprience ...
Are you sure you set 'Z' "hight" to your Ground's ? It's usually '10' for unmodified Ground
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
I have tried spawning with no height and by setting a height, below and above the ground.

My friend had this problem years ago on a no money map he made, made an oil spawn every few minutes but you could go through it and shoot through it.   00111.png (2,126kb) downloaded 15 time(s).   00112.png (1,857kb) downloaded 14 time(s).   00113.png (2,135kb) downloaded 14 time(s).
Vauxe
  • Vauxe
  • 50.25% (Neutral)
  • Private
8 years ago
If I remember correctly, the building has no collision box when you spawn it with an orientation. Try spawning it with the script that doesn't include setting the objects orientation.
vtulcobra here
i^love^mixery
8 years ago
Vauxe is correct. As far as I remember, spawning them on a waypoint will work as intended. Spawning them on coordinates will cause the behaviour you described. You could make the area where you want to spawn them impassable by hand (with the texture tool). But I guess units will then still be able to shoot through them.
Unknown Editor
8 years ago
I usually Set the Building right where I want , then copy the Coordinates , rotation , and ...
then Spawn the Building ... Never by a waypoint
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
OK so I tried all 4 but still failed :(

Named unit, team, position, orientation
Named unit, team, waypoint
Unnamed unit, team, waypoint
Spawn Unit

My units still travel through lol...

Thanks to everyone that has been helping so far.
I could do impassable but yea units can shoot through, I usually take out the debris from the first building which has been destroyed.
Only solution I can think of for now is to have the building lower into the ground so you can only get in from one side.