Jump to content

SetGroupFormation & SupportCall


Stimo

Recommended Posts

I just can't have those two functions working, I need your help to understand where I'm wrong : in the following trigger, I can use whatever available formation instead of LINETANKHUMAN, the "Fr_Inf_1" group moves to "Point_1" using a complete random formation.

SetWorkArmy ( Army , 2 )

SetGroupFormation ( "Fr_Inf_1" , LineTankHuman )

RunCommand ( Group , "Fr_Inf_1" , Move , Point , "Point_1" )

Could you also show me an example of trigger that instantely delivers an arty support on a Rect ?

Can you detail the way you set this support's parameters ?

Thank you !

Link to comment
Share on other sites

Formation is 100% used in the end waypoint, on the way formation may be broken. In addition, LineTankHuman works in this way: if there are many infantrymen, they form a line behind line of tanks; if there are few infantrymen, they take cover behind one of the tanks.

Link to comment
Share on other sites

Here's a couple of solutions that I've used:-

Create a rect around an Army's humans & then shell it

CreateRectByObject ( RECT , "Arty Rect" , 100 , ARMY , 1 , HUMAN , 2 , NO_PANIC )

Delay ( 5 )

ArtSupportCall ( 2 , RECT , "Arty Rect" )

Hit a predefined rect

AviaSupportChangeState ( 2 , BATTLEPLANE , ENABLE )

AviaSupportCall ( 2 , BATTLEPLANE , RECT , "final objective" )

HTH

Link to comment
Share on other sites

Many thanks for your useful answers, friends !

I'm not at home for a couple of days and I'll try it as soon as I'm back.

About the moving formation, I suspected it was something this kind.

But about the supports, Gnasher, where do those commands ARTsupportcall or AVIAsupportcall come from ? I don't see them in my reference (Trigger manual 2.0) ?

Link to comment
Share on other sites

Hello, I'm back home !

I tryed what you suggested, and supports still doesn't work as I figure it should.

Could you help me understand ?

Here is a screenshot of the map I use for my tests :

http://perso.wanadoo.fr/stimo-online/ToW/202.jpg

There's a french infantry group named "Fr_Inf_1", part of army #2, a rect "Rect_Fr_1" where I want it to go, two points : "Point_1" and "Point_2".

A german unit (army #1) : a BMW motorcycle known as unit #8.

Also a central rect "Rect_1" in which I want arty shells to fall down.

Here is the way I set up my supports :

http://perso.wanadoo.fr/stimo-online/ToW/203.jpg

Now here are my scripts :

[init]

ChangeFogOfWar ( Disable )

RunTrigger ( "France" )

Halt

[France]

SetWorkArmy ( Army , 2 )

SupportChangeState ( Army , 2 , enable , All )

SupportCall ( Army , 2 , Rect , "Rect_1" , Recon )

SupportCall ( Army , 2 , Unit , 8 , Artillery )

Halt

When I start the game, here is what happens :

The plane doesn't come.

The shells fall on the german #8 unit.

When I replace the recon plane function this way : SupportCall ( Army , 2 , Unit , 8 , Recon ), it comes around the bike.

When I change the arty function this way : SupportCall ( Army , 2 , Rect , "Rect_1" , Artillery ), the trigger compiler says : " *** FAILURE *** [sYSTEM] france: Unknown Target type in procedure "SupportCall Army 2 Rect Rect_1 Artillery " "

So my questions are :

1) does the SupportCall function really handles Rects as objectType ?

2) what are Timeout and Calldown in the supports settings ? And why is Calldown at least equal to Timeoout +1 ?

Link to comment
Share on other sites

×
×
  • Create New...