OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Hit_Sqd_Zulu 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
-
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
-
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.
-
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
-
Thx alot Terox ..I'll give it ago later on today ;D