OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BlackDeath-CFH on 06 Sep 2002, 19:40:26
-
ok, im working on a mision where your flying in a c130, but once you enter this one area (trigger activated) i want a rocket to fly in and hit the plane, now when this happens i want a message to appear saying 'blah blah blah the pkanes been hit' but i dont know how to get the rocket to hit the plane and the message to appear a few seconds after, is there a way to do this?
-
Check out the editors depot. Find a script be Sefe about a guided missle script. Its exactly what you need, if its up yet.
As for your "Oh no, the planes hit"
Using the name of the plane (you need to name it) make a trigger and put in the condition field;
GetDammage PlaneName >0
Now as soon as the plane gets damaged (from the missle) the trigger will activate. You can use the text option in the trigger options, or a SideChat or similar.
-
yep, its sefe's SAM guided missile - under aiborne section i believe - cant remember exactly where i uploaded it ;)
-
Haven't tested it but maybe it works?
Create a missile (Maverick, Hellfire...what ever) 50 meters behind the plane and tell it to domove getpos plane.
For the text only write this in a script:
#DammageControl
? nameofplane dammage > 0.1 : TitleText ["We're hit...","Plain"]
goto "Dammagecontrol"
I think I've to test it myself...
Greetz
Plage
-
Ugly ugly ugly.
@ nameofplane GetDammage > 0.1
TitleText ["We're hit...","Plain"]
Does the same thing without the loop. Oh and I looked for a command "Dammage", but couldnt find one.
-
Guided SAM Missile script?
i just tried this script and its made by sefe, this is not exactly what im looking for, when you get into this area i want the missle to fly out and hit the plane. i dont wanna have to do it ymself because im riding in the plane.