Ok. Scripts are foreign to me, but I will do one just for this. Problem is I do not know how to. Or perhaps I can get away without using one.
I will explain what is suppose to happen in this mission.
Here is a list of objects that are involved:
Mi-17
gunshipApilot of Mi-17
pilotA3 x spetnaz (the bodyguard of VIP)
groupthis= spA3 x spetnaz (the bodyguard of VIP)
groupthis = sp11 x officer (the main target)
VIPBMP2 (the BMP that the spetnaz will get in after the Mi-17 drop them off)
VIPBMPBMDR (the armour car that the VIP will get in after the Mi-17 drop him off)
VIPCARAlright, with the vehicles/chopper and their respective name spell out. Let me begin.
The BMP2 will driver from a town (the map is MALDEN), to a location where it looks like a beach. Then it will activate an area trigger, for which the area trigger will call the pilotA to GETIN the gunshipA and load the sp1 and spA and VIP.
The gunshipA will now fly to the beach area and drop off all the sp1, spA and VIP. The gunshipA will then fly back home. Meanwhile the sp1, spA and VIP will GET IN the VIPBMP and VIPCAR.
Now, here is the twist.
The player will have multiple chance of killing the VIP. The player can shoot him as he get off the chopper, the player can blow up the BMP and force the chopper to abort his landing and go to another location to land and drop off the speztnaz and the VIP. Or just RPG the chopper, one clean shot and mission accomplish.
But forget about RPGing the chopper. If the BMP is destroyed, then the pilotA will abort landing and land at LZ2 (LZ2 is the secondary landing spot). Which lead to an embush from the West team whom waited for the VIP and gunship. The West team will proceed to kill everyone in the chopper, including the crew member.
Inorder to achieve the above effect, I have set up alot of triggers.
1.) one tigger controls the chopper, flown by pilotA (pilotA domove getpos LZ1) LZ1 is the invisible H by the beach
2.) 3 trigger controls the 2 speztnaz team and the VIP (hence 1 trigger for each).
sp1 leaveVehicle gunshipA
spA leaveVehicle gunshipA
VIP leaveVehicle gunshipA
3.) this trigger suppose to cause the pilotA of gunshipA to go like "OH SHIT! ABORT LANDING!!!", if the BMP (VIPBMP) or the BMDR (VIPCAR) is wrecked.
condition: not (alive VIPBMP) or not (alive VIPCAR)
activation: pilotA domove getpos LZ2 (LZ2 is the secondary landing location for the pilotA)
the problem is....
Once the chopper begin to settle down and drop off the passengers. It will not stop the action!!
I decided to test this out.
I RPG the BMP (VIPBMP) and yet the pilotA still land "hover" and let out the damn VIP and the 2 spetnaz team.
Neither the chopper did follow the tigger (if bmp destroyed, then doMove to LZ2). He continue as if nothing happen, everyone came out, and looks around like a bunch of sitting ducks.
Yeah, I know the player can then RPG them too. But that is not the point.
I want the chopper to abort whatever he was doing and hurry his ass to LZ2. Which will be his last stop ever.
Can anyone help me on this one? I am patient and will send the mission to you if you would like. I have worked all that I can. But now I am really stuck. I left the same question in OFP.org but no luck.
Thanks man. Cheers.