Home   Help Search Login Register  

Author Topic: Player as gunner in a ai chopper  (Read 1218 times)

0 Members and 1 Guest are viewing this topic.

Hit_Sqd_Zulu

  • Guest
Player as gunner in a ai chopper
« on: 06 Aug 2003, 19:29:40 »
I am currently working on a 2 player helo mission. You can only play as gunner.
I have the way points fine but i cant figure out how to make the helo rearm and repair as needed. Any help would be greatly appreciated. Also a big thanks to all of you that help people like me ...You peo ;Dple rule ..tyty

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Player as gunner in a ai chopper
« Reply #1 on: 07 Aug 2003, 18:28:11 »
if you had your Player gunner as leader of the group, would the pilot not follow your radio commands

maybe the best thing to do is have him fly to a trigger area and have the trigger automate the rearm and repair. landing the chopper etc
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Hit_Sqd_Zulu

  • Guest
Re:Player as gunner in a ai chopper
« Reply #2 on: 08 Aug 2003, 15:00:30 »
OK ...the mission has only 2 objectives..... 1st take out armor convoy.  While fighting the convoy i want either chooper when it gets shot up or low on ammo to go to the supply trucks and fix and rearm. Then when the first objective is completed, the choppers return to rearm and refuel before moving to the 2nd objective. I have the most of the first objective worked out but i need help with the condition and onactivation for the trigger or triggers.
Thanks alot Terox for replying. I was hoping to have the resupply trucks move to the helos and resupply. If this can be done i would appreciate any help.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Player as gunner in a ai chopper
« Reply #3 on: 08 Aug 2003, 21:23:23 »
sounds like you should use a looping script that checks to see if either the chopper has

lets play makebelieve
Chopper is a cobra named "C1"

In the init.sqs type the following line
[] exec "Vehsupport.sqs"

and then create the following script and save it as "Vehsupport.sqs"


#START
~2
?(getdammage C1 >= 0.5): goto "Repair"
?(C1 ammo AH1HellfireLauncherCobra ==0): goto "REARM"
?(C1 ammo Zunilauncher38 ==0): goto "REARM"
?(C1 ammo MachineGun30A10 ==0): goto "REARM"
goto "START"


#REPAIR
do whatever you need to do here,
eg move repair to chopper or chopper to repair etc
the next line waits till chopper is repaired

@(getdammage C1 == 0)
goto "START

#REARM
do whatever you need to do here, the next lines waits till chopper is fully rearmed
@(C1 ammo AH1HellfireLauncherCobra ==8)
@(C1 ammo Zunilauncher38 ==38)
@(C1 ammo MachineGun30A10 ==500)
goto "START
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Hit_Sqd_Zulu

  • Guest
Re:Player as gunner in a ai chopper
« Reply #4 on: 09 Aug 2003, 07:09:31 »
Thx alot Terox ..I'll give it ago later on today ;D