Set the Mover type of the unit to Ground, and it should take ground pathing. Remove Collision flags with ground to ignore collision. This should get you what you need.
My map suggests that the action takes place in a cave so I don't want change properties for every flying unit manually, Its not right way i feel:)
Can I make something like universal script that automatically will convert all fly units to ground?
while(Unit_type_array) {if (CUnit_mover=Fly) CUnit_mover=Ground} ??
2. Unit still have vision of flying unit, I want to make it like ground, they dont need to see over cliffs, this is a cave:)
3. (not so important) can I make flying units still to fly over buildings? (after changing mover they cant)
4. (not so important) when moving on winding way, flying unit look towards destination point, not actually towards their move
I think you can't change the mover on the fly with catalog. So you might need to add a morphing ability to a modified version of the unit and issue the morph command whenever you need to change the unit.
Did you try to place the air pathing blockers (doodads) already?
You can edit their footprint in data, too. That way you can create bigger footprints which will cover bigger areas.
I need to change mover once, before game starts. I just dont want to spend some hours to convert all units manually:) Maybe there is a way to batch convert data where condition is CUnit_Mover = Fly?
About pathing - I solved this problem, but air pathing blockers (doodads) didn't help cause unit cant find right path
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello everybody, I am new to editor and this is my first thread:) First of all I want you excuse me for my english:)
My question based on this thread: http://www.sc2mapster.com/forums/development/data/36698-solved-how-to-make-air-units-choose-ground-pathing/
But I have several additional question related:
1.
My map suggests that the action takes place in a cave so I don't want change properties for every flying unit manually, Its not right way i feel:) Can I make something like universal script that automatically will convert all fly units to ground? while(Unit_type_array) {if (CUnit_mover=Fly) CUnit_mover=Ground} ??
2. Unit still have vision of flying unit, I want to make it like ground, they dont need to see over cliffs, this is a cave:)
3. (not so important) can I make flying units still to fly over buildings? (after changing mover they cant)
4. (not so important) when moving on winding way, flying unit look towards destination point, not actually towards their move
I will be glad of any help:)
For number 3, I believe that can be solved by also unchecking the "Structure" collision flag. I may be wrong on this one.
For number 2, set the Vision Height to 3.
If this is unchecked, no matter what mover he uses, he will be able to go through the structure, as the collision flag is gone.
http://www.sc2mapster.com/forums/development/data/14186-removing-a-units-ground-collision/
A workaround is to temporarily change the unit's radius to 0
For number 1. You will have to use catalog triggers, but I am not 100% sure if you can change the collision flags with it..
Thanks for the answers! numbers 2,3,4 are solved.
But about number 1:
I need for each unit type that has "CUnit_Mover = Fly" do next operations:
CUnit_Mover change to Ground
CUnit_Collide add flag e_unitCollideLand16
CUnit_VisionHeight change to 0
Have you any suggestions to do this?
I think you can't change the mover on the fly with catalog. So you might need to add a morphing ability to a modified version of the unit and issue the morph command whenever you need to change the unit.
Did you try to place the air pathing blockers (doodads) already?
You can edit their footprint in data, too. That way you can create bigger footprints which will cover bigger areas.
@Ahli634: Go
I need to change mover once, before game starts. I just dont want to spend some hours to convert all units manually:) Maybe there is a way to batch convert data where condition is CUnit_Mover = Fly?
About pathing - I solved this problem, but air pathing blockers (doodads) didn't help cause unit cant find right path