Home   Help Search Login Register  

Author Topic: medic chopper or ammo chopper  (Read 1267 times)

0 Members and 2 Guests are viewing this topic.

Commando

  • Guest
medic chopper or ammo chopper
« on: 25 May 2003, 03:33:52 »
Is there anyway to make a ch47 for an example be able to heal, repair, rearm other vehicles or soldiers? Like making a flying medic chopper or rearming and repairing a tank platoon after some heavy fighting. :)

Mujahedeen

  • Guest
Re:medic chopper or ammo chopper
« Reply #1 on: 25 May 2003, 03:56:41 »
Hi!

You can add weapons/ammo to vehicles by the addweaponcargo/addmagazinecargo commands, e.g. chopper1 addmagazinecargo ["ZuniLauncher38",10] would add 10 FFAR Rockets used by the Cobra and UH60 to the ammo chopper...

I dont think you can make the chopper able to heal...   ...unless you change the config.cpp for it...  ...or download a chopper with healing capabilities (there's one in the NamPack 2)...

cheers...

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:medic chopper or ammo chopper
« Reply #2 on: 25 May 2003, 11:20:55 »
You can fake the healing chopper.     There are lots of ways to do it but basically if any unit comes within 3m of it (say) the unit gets is setdammage 0.    For the player you can use addaction ... for AI units you could run a script that checks the dammage of any unit within 200m of the chopper when its on the ground and makes any unit with a certain amount of dammage go to the chopper to get healed.

Similarly with rearm and repair vehicles/soldiers.
Plenty of reviewed ArmA missions for you to play

Commando

  • Guest
Re:medic chopper or ammo chopper
« Reply #3 on: 25 May 2003, 13:32:04 »
Well thx both of you both macguba could you be a bit more precise in how to add the healing, refueling capabilities to the chopper

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:medic chopper or ammo chopper
« Reply #4 on: 25 May 2003, 13:43:24 »
setdammage 0 is the key, the rest is just how you want to do it.    Tell us more about the circumstances.     Is this mostly for the benefit of the player?   The player's squad?    Do you want the chopper to have infinite healing powers?   Is this a one off resupply or can you call it in?    Etc.
Plenty of reviewed ArmA missions for you to play

Commando

  • Guest
Re:medic chopper or ammo chopper
« Reply #5 on: 25 May 2003, 13:52:36 »
I was thinking about making a mp mission where both sides have all stuff but the regular support trucks usually gets easily destroyed and I would like to test if i can make the c130a to be able to refuel A-10's in the air like the support trucks can rearm or refuel tanks on the ground while standing next to them.
Its for players and not really A.i i think.
I've seen something about this on the forums but that was for a long time ago. if it could be done with triggers and init line commands i would be happy. Im also going to try to add vehicle respawn and maybe some artillery script but last time i implemented a vehilce respawn script the A-10's blow up when they respawned on top of eachother :P

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:medic chopper or ammo chopper
« Reply #6 on: 25 May 2003, 13:57:55 »
If its for players its easy.    

Trigger anybody present, size 3m (experiment to get this right) around the chopper.     Use setpos to move the trigger as the chopper moves.

On activation:     "_x addaction ["Heal at chopper",medChopper.sqs]" forEach thislist

syntax not guaranteed.    medChopper.sqs is a little script that just does setdammage 0.    Use removeaction to remove the action once the player is healed or moves away from the chopper.
« Last Edit: 25 May 2003, 15:00:59 by macguba »
Plenty of reviewed ArmA missions for you to play

Commando

  • Guest
Re:medic chopper or ammo chopper
« Reply #7 on: 25 May 2003, 14:00:14 »
this probably a stupid question but what should i write in the init.sqs file? :-[

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:medic chopper or ammo chopper
« Reply #8 on: 25 May 2003, 15:00:34 »
You don't need anything in init.sqs for this.

Note addition in bold to previous post.
« Last Edit: 25 May 2003, 15:01:20 by macguba »
Plenty of reviewed ArmA missions for you to play