Jump to content
Sign in to follow this  
thefinn

Making my heli crash script better.

Recommended Posts

So I just made this for an intro for a mission I'm working on.

sleep 5;
CH1 setdamage 0.85;
CH1 setHit ["motor",1];
CH1 setHit ["mala vrtule",1];
CH1 setHit ["velka vrtule",1];
CH1 allowDamage false;
sleep 180;
CH1 allowDamage true;
CH1 setdamage 1;

Now I'm not even going to go into why some of BI's code must be written in Czech, and just roll my eyes and say "Well obviously".

The one issue I'm having is the "motor" and the main rotor lines don't seem to actually be working, and the pilot (like a dick) actually keeps it in the air without control of the back rotor :)

(I know I can zero the fuel, but pretty sure that doesn't sound the pilots warning alarm inside the chopper which sounds pretty cool).

I'd also love to add some fire/smoke or something to the chopper, but unsure how to attach it. (I'm using the Ghost Hawk).

Any suggestions?

Share this post


Link to post
Share on other sites

Play about with these and you should get an acceptable result (in Engrish for you as well) ;)

CH1 setHitPointDamage ["HitEngine",1]; // Self explanatory
CH1 setHitPointDamage ["HitHydraulics",1]; // makes the chopper shake if you are in it
CH1 setHitPointDamage ["HitFuel",1]; // BANG!
CH1 setHitPointDamage ["HitHRotor",1]; // main rotor
CH1 setHitPointDamage ["HitVRotor",1]; // tail rotor

Edited by Das Attorney

Share this post


Link to post
Share on other sites

Oh nice thanks.

Any ideas on attaching fire/smoke appreciated.

Edited by thefinn

Share this post


Link to post
Share on other sites

You could spawn an object using class "test_EmptyObjectForFireBig" or maybe "test_EmptyObjectForSmoke" and then attach it to the chopper

Share this post


Link to post
Share on other sites

Yeah having issues attaching it to the chopper atm...

_FIRE = "test_EmptyObjectForFireBig" createVehicle position CH1;
_FIRE attachto [CH1,[0,-5,0]];

this basically makes a fire below the chopper on the ground, the 2nd attachto command is giving an error and ending the script.

Hrm ok, this started to work, dunno why.

---------- Post added at 13:58 ---------- Previous post was at 13:15 ----------

sleep 10;
CH1 setdamage 0.4;
CH1 setHitPointDamage ["HitVRotor", 1];
sleep 10;
CH1 setdamage 0.85;
CH1 setHitPointDamage ["HitHydraulics",1];
CH1 setHitPointDamage ["HitFuel",1];
CH1 setHitPointDamage ["HitHRotor",1];
CH1 setHitPointDamage ["HitEngine",1];
_FIRE = "test_EmptyObjectForFireBig" createVehicle position CH1;
_FIRE attachto [CH1,[0,-3,0]];
CH1 allowDamage false;
sleep 90;
CH1 allowDamage true;
CH1 setdamage 1;

Having issues in multiplayer.

I just ran it up on my server, and it destroys everything including main rotor, fire is good etc... However... the bird is still in the air lol

No rotors moving and it's just listing to and fro as when you lose the vertical rotor.

Any ideas ? :)

Seems it was just that one time, I ran it through again and it was ok.

Edited by thefinn

Share this post


Link to post
Share on other sites

How do I remove the fire? I cannot seem to work out how. I checked the configs and it's apparently an "empty vehicle" but deleteVehicle doesn't work on it.

I was also under the impression that if you attached something to an object and deleted the object then the attached object was also deleted. Apparently not, the fire just floats in the air after the heli is garbage collected.

Any help appreciated.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×