Home   Help Search Login Register  

Author Topic: A script to check downed aircraft  (Read 486 times)

0 Members and 1 Guest are viewing this topic.

Offline m6zero

  • Members
  • *
  • The AAVP7A1 Crew Chief from HELL! Semper Fi!
A script to check downed aircraft
« on: 16 Feb 2005, 03:06:30 »
Is it possible to have a script where a group of soldiers will go check a downed aircraft for survivors? If it is an enemy aircraft, the soldiers will go to the area where the aircraft went down and eliminate anyone who is still around. Or if it is a friendly aircraft, they will search the area for survivors and bring them back to the base? Maybe search like a 200m radius from the downed bird or something. I know that is probably a multi-scripted question, but I wanted to make some missions where they will do that.

Also, if the pilots ejected, meaning the aircraft wasn't destroyed in the air, would the aircraft keep the name it was asigned or would it drop the name once the aircraft exploded on the ground?

I'm not that good at scripting (actually, i'm quite horrible. I'm learning though) and would appreciate any help.

You know what I hated most about the war in Iraq? My magazine emptied at the most inconvinient times!

Dubieman

  • Guest
Re:A script to check downed aircraft
« Reply #1 on: 16 Feb 2005, 03:24:16 »
Well the name is kept and if you want to identify the crew use

chopperP
chopperG

The name of the chopper...then the Pilot and and the Gunner. P & G. I dunno if P works, but I suspect it does. ::)

And some move or domove commands for the infantry or some crafty Waypoints to get them there can do the trick. ;)

Offline Fragorl

  • Coding Team
  • Former Staff
  • ****
Re:A script to check downed aircraft
« Reply #2 on: 16 Feb 2005, 03:59:53 »
ChopperD, i think. It's 'driver' always, regardless of the type of vehilce  :)

Offline m6zero

  • Members
  • *
  • The AAVP7A1 Crew Chief from HELL! Semper Fi!
Re:A script to check downed aircraft
« Reply #3 on: 16 Feb 2005, 04:27:22 »
So i would name them chopperD and chopperG, then set a waypoint for them to get in the chopper? Or is there another way to name them by using the west->air->uh-60 where they are already loaded into it?
You know what I hated most about the war in Iraq? My magazine emptied at the most inconvinient times!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:A script to check downed aircraft
« Reply #4 on: 16 Feb 2005, 11:50:47 »
The crew are named automatically if you name the vehicle.  In this case it has been assumed that the vehicle has been called "chopper".

Making the search group go there is relatively easy.   Give them the waypoints you want; use setWPPos commands to put them in the right place;  and use switch triggers to control where the group are along their waypoint sequence.

The hard part is "catching" the chopper.     The trouble is that you have to cover a multitude of circumstances

- chopper destroyed in air
- chopper not destroyed in air but crew killed
- crew bail out, chopper destroyed on landing
- crew bail out, chopper not destroyed on landing
- crew bail out but killed in air due to chopper exploding
- crew bail out but too low and die on landing
 
and so on and so on.     You could simplify it by using a tail rotor script which detects when the chopper is sufficiently damaged and then puts it into a spin.   You could detect when the crew are not in their vehicle and use that to fire your trigger.

I recommend that you have a hunt around the Ed Depot and see what you can find relating to choppers;  spend some time playing at shooting down choppers in different ways and watching the results;  making a comprehensive list of all the logical possibilities;  thinking clearly about what you are trying to do;   and making a simple version of your script which starts with the crew on the ground - this will enable you to get the waypoint and trigger part sorted out.
Plenty of reviewed ArmA missions for you to play

Offline m6zero

  • Members
  • *
  • The AAVP7A1 Crew Chief from HELL! Semper Fi!
Re:A script to check downed aircraft
« Reply #5 on: 17 Feb 2005, 02:24:30 »
Wow, there's a lot of different stuff I didn't consider. Sounds kinda easy....I think. Let's see how the old programming skills still serve me.  ;)  :)

Thanks everyone!
You know what I hated most about the war in Iraq? My magazine emptied at the most inconvinient times!