Heya all!
I am quite green when it comes to forums so please bare with me and hold the tomatoes! Now, onto more pressing matters...
What I'm trying to achieve is having Karsh hover several meters above the water/terrain and only go close to the ground to engage targets.
My dilemma involves the 'Surfaces = AIR' in locomotor and its inability to recognize a structure in front of it. Essentially this causes the unit to happily glide through any building and in rare cases will attack units from within the safety of a structure, that's no good.
Now I really hope that I am over thinking this and it's something simple, but hey, we'll see!
Here is the locomotor code for Karsh:
Locomotor KarshHoverLocomotor
Surfaces = AIR
MinSpeed = 50%
TurnTime = 1500
TurnTimeDamaged = 1500
Acceleration = 1000 ; 1 second to accelerate to full speed.
Lift = 100%
LiftDamaged = 100%
Braking = 1000 ; 1 second to brake from full speed.
MinTurnSpeed = 30%
PreferredHeight = 25 ; cruise height
PreferredAttackHeight = 0 ; attack height
AllowAirborneMotiveForce = Yes
ZAxisBehavior = SURFACE_RELATIVE_HEIGHT
Appearance = HOVER
CloseEnoughDist = 1.5
AirborneTargetingHeight = 35
End