Home   Help Search Login Register  

Author Topic: Convoy Scripting help...  (Read 573 times)

0 Members and 1 Guest are viewing this topic.

Offline AirCav

  • Members
  • *
  • I'm a llama!
Convoy Scripting help...
« on: 26 Dec 2004, 02:08:27 »
Hi all,

I'm new to scripting, but have researched all of the online FAQ's before posting here.  I just can't find these answers.

Anway,  i'm stationed in Iraq and have been trying to creat some basic missions that somewhat reflect what happens here.   First one i'm working on is a resupply convoy that gets struck by several IED's and a VBIED enroute.  Convoy consists of 2 Jeeps with .50CAL, 3 5 Tons, each loaded with a Rifle Squad, and two more .50CAL Jeeps pulling up the rear.  The convoy gets struck by several IED's along the route and i'm trying to force them to execute proper actions on contact as well as call up 9-Lines when necessary.

Some very basic Questions:

1.  I have two medics that I want to load an ''émpty'' helicopter.  I named the group ''medics'' and gave them a GET IN waypoint to the helicopter.  On Activation field reads as follows:
 "[_x] ordergetin true" foreach units Medics;  
What is the proper On Activation field input to assign them as cargo?

2.  I've figured out how to call an aircraft to your position using a radio command, i'm trying to get a MEDICAV aircraft to land, treat any wounded on the scene then load them on the aircraft and evacuate them.  
Questions:  
a. How can I get the medics to identify and treat wounded soldiers at the scene.  Waypoints won't work as its an 'on call' mission.  Gamelogic?  Not sure how that works.
b. How do I get the wounded to load the helicopter after being treated.
c. How
 
3.  If I have a patrol of two Bradleys, is there a way to force the second vehicle to keep the turret tranversed to the 6'oclock position?

4.  How do I make the convoy drive through an ambush and return fire without stopping, offloading packs, or swerving all over the road.  And why does the convoy typically leave the road and get turned every which way after a simple sniper attack?  My current waypoint setting is Open Fire, Column, Full Speed, Careless.'  My intent is to force them to stay on the road, in column order with the gunners covering 360 degrees.  
ve experiemented with several combinations, but all end up with bad to distastorous results.

5.  How can I make a resistance soldier fire a limited number of rounds at the convoy, then run away (in some cases, before the convoy get's a chance to return fire)?

i've got more, but this will do for starters.  I'm only using OFP 1.46.  Is there a way to buy it online and D/L it?  I don't want to wait the month and a half for the package to arrive out here!

Offline AirCav

  • Members
  • *
  • I'm a llama!
Re:Convoy Scripting help...
« Reply #1 on: 26 Dec 2004, 02:53:52 »
(con't)

Solved Question 1.  The follow-up:

1.  What is the proper format for the SetFormDir command?  Currently using - this SetFormDir N

2.  Is there a difference to assigning these commands (SetFormDir, FlyInHeight) to aircraft or units that have boarded empty aircraft?  I can't get either command to work for units that didn't start off in the aircraft at the beginning of the mission.

3.  I'm also using Gimbles Tossars (love those guys).  Is there a way to force a unit to target a specific unit it otherwise wouldn't normally shoot at (i.e. have a soldier shoot his AK at a tank or have a Tossar throw rocks at HMMWV's)?

I appreciate all the help, guys.

-=AirCav=-

pazuzu

  • Guest
Re:Convoy Scripting help...
« Reply #2 on: 26 Dec 2004, 03:07:33 »
You try looking at the command reference?

http://www.ofpec.com/editors/comref.php?letter=A

There is a dofire & dotarget command...

Offline TonyRanger

  • Members
  • *
  • I'm a llama!
Re:Convoy Scripting help...
« Reply #3 on: 26 Dec 2004, 08:43:25 »
1.  I have two medics that I want to load an ''émpty'' helicopter.  I named the group ''medics'' and gave them a GET IN waypoint to the helicopter.  On Activation field reads as follows:
"[_x] ordergetin true" foreach units Medics;  
What is the proper On Activation field input to assign them as cargo?
A:unitname assignascargo carname
2.  I've figured out how to call an aircraft to your position using a radio command, i'm trying to get a MEDICAV aircraft to land, treat any wounded on the scene then load them on the aircraft and evacuate them.  
Questions:  
a. How can I get the medics to identify and treat wounded soldiers at the scene.  Waypoints won't work as its an 'on call' mission.  Gamelogic?  Not sure how that works.
b. How do I get the wounded to load the helicopter after being treated.
c. How
  A:you can let the wound not in west side by editing the mission.sqm and setcaptive true to them
3.  If I have a patrol of two Bradleys, is there a way to force the second vehicle to keep the turret tranversed to the 6'oclock position?
A:do "unitname setformdir 60"
no-stopping
4.  How do I make the convoy drive through an ambush and return fire without stopping, offloading packs, or swerving all over the road.  And why does the convoy typically leave the road and get turned every which way after a simple sniper attack?  My current waypoint setting is Open Fire, Column, Full Speed, Careless.'  My intent is to force them to stay on the road, in column order with the gunners covering 360 degrees.  
ve experiemented with several combinations, but all end up with bad to distastorous results.
A:you can try gunner is not the driver or commander's group  member

5.  How can I make a resistance soldier fire a limited number of rounds at the convoy, then run away (in some cases, before the convoy get's a chance to return fire)?
A:you can setcaptive true to these resistance soldier,than addeventhandler to them<this addeventhandler["fired",{openfire=true}]>,a trigger' is active by openfire=ture after 10 sceond,than resistance soldier setcombatmode"blue",than domove to someplace