Jump to content
Sign in to follow this  
n_icomach

Set hit "Motor" and "Mala vrtule" no longer working

Recommended Posts

Im trying to do a small practice mission where my helicopter tail rotor goes out or the engine, or both. I currently have a trigger on a radio set for

heli1 setHit ["motor", 1];

heli1 setHit ["mala vrtule", 0.95];

Neither is doing anything. Did BI change the classnames or something?

Share this post


Link to post
Share on other sites

Depends on the vehicle, for most helicopters I think it's "engine" (or "HitEngine"?).

Edit: "HitEngine", "HitHRotor" (main rotor), "HitVRotor" (tail rotor)

Share this post


Link to post
Share on other sites

You can always use setHitPointDamage, getHitPointDamage to do the same thing. Hit points are more unified by name than selections.

Share this post


Link to post
Share on other sites

Here's what I'd do:

_config = getText (configfile >> "CfgVehicles" >> typeOf heli1 >> "HitPoints" >> "HitVRotor" >> "name");
heli1 setHit [_config,1];

As Magirot mentioned, "HitVRotor" for tail rotor, "HitHRotor" for main rotor and so on...

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  

×