If you set a flying unit to "Ignore Terrain Height" they will fly in a straight path and will not follow the curves of the terrain. This is fine. This is what I want.
The problem comes when I get my flying "Command Center" that has "Ignore Terrain Height" to land on the ground. If the terrain height is anything but 0 (hilly landscape), the flying unit will clip through the terrain texture when landing, so basically my building will land underneath the rest of the map.
The "Landed Command Center" has normal properties, ie "Ignore Terrain Height" *unchecked.*
Is there a way to fix this so that my flying building will not clip into the ground when landing?
I'm not sure to bring any help but here my observations.
I know that when you use Morph or Morph Placement, it does the difference in height between the target and the source units (Ex : Lift Off : 3.25 - 0 = +3.25 ; Land : 0 - 3.25 = -3.25). Then it modifies the unit, applying the addition to its height.
As far as I know, you can't get the cliff level (thus, the actual height), so you must find a workaround.
I tried to get ride of this calculation to make it manually in actor events :
A) Get ride of the "FlyerHelper" in Actor Events of the unit : Because the "Morph" Ability is supposed to change the Unit Type (like AddOns or Siege Tank) and is all, not to change the height unit. You won't find any clue if you search in "Morph" Ability fields.
B) As the last resort : Because it's still possible to mimic the "Morph" Ability with Effects (Modify Unit) ... only with height GE 0 (>= 0).
If you set a flying unit to "Ignore Terrain Height" they will fly in a straight path and will not follow the curves of the terrain. This is fine. This is what I want.
The problem comes when I get my flying "Command Center" that has "Ignore Terrain Height" to land on the ground. If the terrain height is anything but 0 (hilly landscape), the flying unit will clip through the terrain texture when landing, so basically my building will land underneath the rest of the map.
The "Landed Command Center" has normal properties, ie "Ignore Terrain Height" *unchecked.*
Is there a way to fix this so that my flying building will not clip into the ground when landing?
When using "Ignore Terrain Height" for a flying unit, it will fly in a straight path and not follow the terrain's curves, which is desired. However, when landing on a hilly terrain, the flying unit may clip through the terrain texture, causing the building to land underneath the map. One possible solution is to manually adjust the terrain height where you want to land the building, use a temporary platform or landing pad, or create a custom landing behavior using scripting or programming to adjust the building's position according to the terrain height.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
If you set a flying unit to "Ignore Terrain Height" they will fly in a straight path and will not follow the curves of the terrain. This is fine. This is what I want.
The problem comes when I get my flying "Command Center" that has "Ignore Terrain Height" to land on the ground. If the terrain height is anything but 0 (hilly landscape), the flying unit will clip through the terrain texture when landing, so basically my building will land underneath the rest of the map.
The "Landed Command Center" has normal properties, ie "Ignore Terrain Height" *unchecked.*
Is there a way to fix this so that my flying building will not clip into the ground when landing?
Hello,
I'm not sure to bring any help but here my observations.
I know that when you use Morph or Morph Placement, it does the difference in height between the target and the source units (Ex : Lift Off : 3.25 - 0 = +3.25 ; Land : 0 - 3.25 = -3.25). Then it modifies the unit, applying the addition to its height.
As far as I know, you can't get the cliff level (thus, the actual height), so you must find a workaround.
I tried to get ride of this calculation to make it manually in actor events :
A) Get ride of the "FlyerHelper" in Actor Events of the unit : Because the "Morph" Ability is supposed to change the Unit Type (like AddOns or Siege Tank) and is all, not to change the height unit. You won't find any clue if you search in "Morph" Ability fields.
B) As the last resort : Because it's still possible to mimic the "Morph" Ability with Effects (Modify Unit) ... only with height GE 0 (>= 0).
> "Effect - Instant" Ability => "Set" Effect {"Modify Unit" Effect ; "Give Order" Effect}
> "Give Order" Effect => "Morph" Ability
Have a nice day.
When using "Ignore Terrain Height" for a flying unit, it will fly in a straight path and not follow the terrain's curves, which is desired. However, when landing on a hilly terrain, the flying unit may clip through the terrain texture, causing the building to land underneath the map. One possible solution is to manually adjust the terrain height where you want to land the building, use a temporary platform or landing pad, or create a custom landing behavior using scripting or programming to adjust the building's position according to the terrain height.