Forums » Air Combat & Civil Aviation » Rise of Flight - The First Great Air War » How does MCU_CMD_AttackArea work?


Topic Options
Rate This Topic
Hop to:
#2883634 - 10/20/09 05:06 PM How does MCU_CMD_AttackArea work?
PatrickAWilson Offline
Member

Registered: 01/19/07
Posts: 656
Loc: Tx
Questions:
What is the difference between AttackGround and AttackGTargets?

What are the possible values of GoalType and what do they mean?

If I have 6 flights and I want any allied to attack any entente, do I simply add every flight to Objects?

What does Time mean? Time to what?

What does AttackArea mean? Attack if within this far of the unit or attack if within this range of the x/y/z coordinates?

MCU_CMD_AttackArea
{
Index = 8174;
Name = "Command AttackArea";
Desc = "";
Targets = [];
Objects = [8161,8176];
XPos = 275460.0;
YPos = 518.0;
ZPos = 47975.0;
XOri = 0.0;
YOri = 0.0;
ZOri = 0.0;
AttackGround = 0;
AttackAir = 1;
AttackGTargets = 0;
AttackArea = 5000;
Time = 900;
GoalType = 0;
Priority = 2;
}

Top
#2883642 - 10/20/09 05:24 PM Re: How does MCU_CMD_AttackArea work? [Re: PatrickAWilson]
Gustang Offline
Member

Registered: 01/24/01
Posts: 724
Loc: Ramsey, MN
Hi Patrick,

From what I've observed, the AttackGround command will cause the AI to attempt to drop a bomb in the center point of the circle you designate. If you set the flags to include ground targets, I think that means buildings. Use the area attack MCU to specify aircraft or vehicles as the targets of choice within the specified area.

To get any aircraft to attack another, set factions properly and issue the appropriate command: attack (specific flight or target), attack area (any of specified type within the set area) or a waypoint set to low priority.

Not sure about the goal types or "time".

Hope this helps,
Gus

Top
#2883835 - 10/21/09 04:38 AM Re: How does MCU_CMD_AttackArea work? [Re: Gustang]
Ming_EAF19 Offline
Babelfish Immune
Veteran

Registered: 09/22/04
Posts: 10618
Loc: London
What is the difference between AttackGround and AttackGTargets?

Three types of attack. Attack Air Targets, Attack Ground and Attack Ground Targets

Attack planes and balloons; attack a ground area; attack a ground target

What are the possible values of GoalType and what do they mean?

The GoalType variable changes the look of an icon in the GUI. For experiment perhaps Pat, starting with zero

If I have 6 flights and I want any allied to attack any entente, do I simply add every flight to Objects?

Yes it looks as if you simply connect more and more planes to the AttackArea icon, that is- Object links are sent from the command (AttackArea) to the planes or other objects as they are tasked. That seems to be an easy way to remember which way around these links should be, to think of the icons as commands rather than objects (they're icons after all) in their own right, the command parameters are sub-commands then

Connect a plane that must join the area attack to the Attack Area icon, with an Object link from the Attack Area icon to the plane

What does Time mean? Time to what?

It's the period during which command is in force, in seconds

What does AttackArea mean? Attack if within this far of the unit or attack if within this range of the x/y/z coordinates?

The command is in force inside the Radius. A plane is commanded to attack some/any enemy object within the radius commanded, for as long as the attack area command is in force

You'll have the manual soon Patrick and it's truly massive and comprehensive with some very deep concepts in there, we don't just have triggers we have a virtual panoply of functions driving the AI pilot's behaviour. If something has flown in here for this long, if something's flown over this spot and then returned, get your Venn diagram phrasebook ready Smile2

Ming
_________________________
'You are either a hater or you are not' Roman Halter

Top
#2883845 - 10/21/09 04:59 AM Re: How does MCU_CMD_AttackArea work? [Re: Ming_EAF19]
womenfly2 Offline
Member

Registered: 02/22/09
Posts: 769
Loc: NH
Great news about a manual for the mission editor, long over due.


Edited by womenfly2 (10/21/09 07:43 AM)
_________________________
Gateway FX7026 Quad core 2.5GHz, 7.1 Audio, 8 gig ram
Windows 7 Professional 64-bit
Bose Champion-5 sound system
Samsung 2493HM LCD 24" monitor
NVIDIAŽ GeForceŽ GTS 250 w/ 1 GB GDDR3.
Direct X10
In the process of building a full size J3 Piper Cub! .. the L-4 version.

Top
#2885010 - 10/21/09 07:08 PM Re: How does MCU_CMD_AttackArea work? [Re: womenfly2]
PatrickAWilson Offline
Member

Registered: 01/19/07
Posts: 656
Loc: Tx
Okay, I accomplished my goal (I think). My flights do not spawn. The start from their own fields and fly the same kinds of missions that you do. Because of this I want them to attack anywhere the enemy is found and not around a specific area.

The answer appears to be the AttackTarget MCU. What I did was assign the target flight as the object and every enemy flight as a target. This way each flight targets every flight on the opposite side.

Scout flights have the target as a primary goal and high priority. Further, all scout waypoints are low priority to allow them to break off and attack. Recon flights have their targets as default goal and low priority. Waypoint priority is medium to get them to stay on course unless attacked.

Needs more testing but initial tests look good. Thanks all.

Top
Topic Options
Rate This Topic
Hop to:

Moderator:  EinsteinEP 

Forum Use Agreement | Privacy Statement | SimHQ Staff
Copyright 1997-2012, SimHQ Inc. All Rights Reserved.