Is there any way to stop an aircraft class unit from redeploying after its target has been destroyed (without dll)??
I want a unit that stays in the air - but using AirCraftFriend/Enemy AI process.
I already have a way to get it to deploy by itself.
The furies in G66, when they lose their target stay floating until the next time something gets close to it.
but they are SAV class - not aircraft
Doesn't seem to help, but here is what I know:
[GameObjectClass]
aiName = "AirCraftFriend"
aiName2 = "AirCraftEnemy"
[AirCraftClass]
OverWaterFlying = true
OverWaterLanded = true
aiAltitude = x
AILiftSpring = 2.0
LiftSpring = 12.5
MaxTakeoffSpeed = 5.0
Those don't seem very helpful.
No - its got all of that already.
What are you using for its engageRange? A large one would allow it to target things farther away and increase its likelihood of staying aloft.
There's also this one:
AltitudeLookahead = 2.0 // Parallels BomberClass::AltitudeLookahead.
The Mega Tower releases a unit called the Sentinal that flys around until it finds it a target that is in range. The DefendArea task name tells the ai to fly around that area it is currently in until it finds a target to attack. ivdrone_c.odf
I orginally put the information under '[AirCraftClass]' but it should of went under CraftClass. Anyhow it works either way far as i can tell. I recommend having the DefendArea so the unit don't attempt to leave the maps edge when flying around without a target. Also to prevent the aircraft from stopping above the target i'd suggest removing any breaks the aircraft has so it passes the target & turns around to attack again.
[CraftClass]
attackTask = "DefendArea"
defendTask = "DefendArea"
waitTask = "DefendArea"
Thanks, ill give it a shot.
Nope that didnt work - I think the reason that your one didnt deploy was this:
QuotetimeUndeploy = 8888888888888888.1 // time to undeploy
It was deploying, just taking about 100 years.
I really need a way to stop aircraft from trying to land after their target has been destroyed.
Try the large engageRange? rangeScan too.
Already at 1000.
I think its programmed in the AirCraftProcess AI to automatically deploy after their target is killed, even if there are tonnes of other enemies around.
Wouldnt be much of a problem if the units were close to the ground, but they are about 1km up and it is extremely frustrating as they come crashing down into the ground.
Sometimes they even bounce up to like 100000m high after hitting the ground.
I will have to consider this a bug and ask for it to be repaired in either pb4a, or if it is going to happen, pb5.
EDIT: Perhaps a new command = canAIDeploy/canAIundeploy
That would save the day.
BBB, have you tried "force morph"/"force unmorph"?
Try removing the [Deployableclass] section.
Quote from: Red Devil on June 27, 2008, 03:15:14 PM
Try removing the [Deployableclass] section.
Its never had one.
Quote from: Zero Angel on June 27, 2008, 03:13:40 PM
BBB, have you tried "force morph"/"force unmorph"?
The units are dll controlled - that does work - but only for things under my control.
Ok - the only way I have found to fix this is to not use the AirCraftFriend/Enemy AI at all. I have to use scout or tank AI.
The units still fight, but they are not even half of what they were.
Any chance of a bug fix GSH??
Did u try using the ivdrone_c.odf that is released by the mega statue?
As i recall i putting the "defendarea" stuff under the [AirCraftClass] section because i got better results on keeping that unit in the air & also kept the unit in the area it was in until an enemy comes into its engageRange.
DefendArea makes no difference.
Yes I have tried your ship. The reason it didnt seem to land was because it had:
timeUndeploy = 8888888888888888.1 // time to undeploy
It was landing, just incredibly slowly. In pb3 this would not make a difference, but in pb4 all aircraft must land before they can takeoff again.
This is a serious bug... because after they have destroyed their target my ship comes crashing into the ground and either bounces off into space, or blows up.
if you read the changelog i believe GSH was going to make some vast improvements on the aircraft class but didnt because people were basically bitching at him.
he may get around to revamping it another time mind you...
shame because i really wanted to use aircraft class in my units.
i know that in PB4, theres an option like this:
[CraftClass]
PathingType = -1 // -1 = auto, 0 = Hover, 1 = Walker, 2 = Person, 3 = Tracked, 4 = Flyer
AvoidType = -1 // -1 = auto, 0 = None, 1 = force, 2 = plan
maybe try playing with that if you have to use the scout/tank/other aiNames
GSH has put some aircraft improvements into pb4.
QuoteIs there any way to stop an aircraft class unit from redeploying after its target has been destroyed (without dll)??
I want a unit that stays in the air - but using AirCraftFriend/Enemy AI process.
I already have a way to get it to deploy by itself.
Make sure you test this in a proper game, not in the editor, the behaviour seems to be different.
My Dalek aircraft do land after destroying their target, if you have not pressed (7) force morph, if you have they carry on flying about and bombing stuff. They still get stuck on the ground if they go to low though.