Home   Help Search Login Register  

Author Topic: CAS Help needed  (Read 1308 times)

0 Members and 1 Guest are viewing this topic.

Offline trooper543

  • Members
  • *
CAS Help needed
« on: 30 Aug 2008, 21:20:05 »
Hi there All

I was wondering if someone could assist me in altering/delveloping a a Close Air Support script for helicopters

What i am trying to is the following:

1. Player calls for Close Air Support

2.  2 Choppers fly off from base to provide support

3. The choppers get to the players position

4 The choppers then move in a circular formation ( all flying with the port(lefthand side ) towards the enemy engaging/straffing enemy )

5. The choppers then return to base

What i have a the moment is an old sqs script that allows for one chopper to carry out CAS but it keeps joining the players grp
which i dont want

Code: [Select]
#Join
driver _helo sidechat ["Glad To Help You Out Here, I Have Five Minutes To Assist]

[_helo] join player [b]How do i change this to get the chopper to just fly round the enmy targets[/b]

~300
? (getdammage _helo)>0.9:goto "busted"

driver _helo sidechat format ["OK %1,  We Are Returning To Base.  Support Mission Over."]

[_helo] join grpnull

Offline epsilonsun

  • Members
  • *
Re: CAS Help needed
« Reply #1 on: 31 Aug 2008, 07:46:25 »
ehh,

I havent script like this,but maybe I can show you some way to work it out.

 first, you make a marker,named player.

 and  edit a sqs script like this;

Code: (Cobra.sqs) [Select]

\\make a cobra with crew.

grpW1 = createGroup west;

C1 = "AH1z" createVehicle getMarkerPos"base";
C2 = "AHIZ" createVehicle getMarkerPos"base";

"SoldierWpilot" createUnit [getMarkerPos"Base",grpW1,"this moveindriver v1;this assignAsdriver v1;",1,"sergant"];
"SoldierWpilot" createUnit [getMarkerPos"Base",grpW1,"this moveingunner v1;this assignAsgunner v1;",1,"Corporal"];


"SoldierWpilot" createUnit [getMarkerPos"Base",grpW1,"this moveindriver v2;this assignAsdriver v2;",1,"Corporal"];
"SoldierWpilot" createUnit [getMarkerPos"Base",grpW1,"this moveingunner v2;this assignAsgunner v2;",1,"Corporal"];

exit


ok,we got cobras with pilot,how to command them?

make a marker in your editor map,named "playerPos". :to local your position,you can put it anywhere.

write a sqs script named attack.sqs

add a trigger activation Radio alpha

On act: []exec "attact.sqs";hint "Copy that,Cobras taking off"

Code: (Attack.sqs) [Select]

\\Local your position.

PlayerPos SetmarkerPos (getpos player);

\\setwaypoint

Grpw1 addwaypoint[getmarkerpos"playerPos",0];

[Grpw1,1] setwaypointtype"SAD";

hint "attacking!"

\\set air support last. eg. 60 secs

~60

\\choopers back to base.

Grpw1 addwaypoint[getmarkerpos"base",0];

[Grpw1,1] setwaypointtype"unload";

\\you need put a marker named base2 or anything you like.

v1 land "base"
v2 land "base2"



hint "Mission complete,Over"
exit


put repair truck,refuel truck ammo truck near the base.add a waypoint support radius 50m

if you like when choppers down,respawn.

add a trigger.

condition : count crew v1 < 1 and count crew v2 < 1;

On act: []exec "cobra.sqs";hint "Mayday,Mayday,we are going down! AAHhhhhhhh....Booommzzz"


 I make it in my company,and no arma to try it

if any questions you can pm;
or msn hawk0524@hotmail.com (Im not alway online,but if you really need help mail me)
If you need onmapclick verion mail plz epsilonsun@126.com;

boss is coming;

cya
« Last Edit: 31 Aug 2008, 08:07:58 by epsilonsun »

Offline trooper543

  • Members
  • *
Re: CAS Help needed
« Reply #2 on: 31 Aug 2008, 08:59:45 »
epsilonsun

Many thanks mate i will try this
Please check your email as i have sent you one

again many thanks

Offline epsilonsun

  • Members
  • *
Re: CAS Help needed
« Reply #3 on: 31 Aug 2008, 09:17:01 »
I notice you like choppers,air strike,and make things reality。

as normal,ppl alway use air strike script,

but,you make things like aircraftcarrier,or script CAS and so on,

I love reality too. I never consider to make chopper support in this way,I will try it in my mission,thanks alot.