Editors Depot - Mission Editing and Scripting > Arma2 - Editing/Scripting Multiplayer

Helo random damage effect

(1/1)

eegore:

  Is it possible to create a sqs or sqf that runs on helicopters that spawn on a consistent server/mission?  This would include ACE for Main Rotor failure features.

   We do pre-flight checks but they are pointless since the helicopters are never damaged so I was wondering if there was a way to create a random damage script that applied varying degrees of damage on the different components of a helo.

  For instance once you start the engine the entire helo is %0 damaged but as it "warms up" the main rotor/fuesalage/tail rotor etc. can incur damage ( component setdamage .1 to .7 ) that either stays, or reverts back to %0 damage. 

  The affect I am going for is a Pilot starts the engines and the HUD shows all green but over the span of 3 minutes the HUD will flicker Orange or Yellow and eventually settle to Zero damage (All Green) or a random range of damage to the helo.

  This makes a pre-flight check and a warm up necessary so you arent in the air when you figure out the main rotor has setdamage .2


  Any assistance here would be appreciated.

Pirin:
You could use the Engine event handler to run a script whenever the engine is turned on.  Maybe limit it be distance from the base so that restarts in the field won't break, or not!

Not sure about changing the HUD color or did you mean just assigning random damage and fixing it for the effect?

The first steps I guess would be to find which items can be damaged on each vehicle and decide how likely you want those to fail.

Take On Helicopters has a really nice preflight check and repair system.  I wonder if we'll get that in ArmA3?

eegore:

  I assume the HUD color will change on its own when the damage is assigned. 

  For instance if the script randomly sets the tailrotor to .5 damage then the color on the HUD should change to yellow on its own right?

 

Navigation

[0] Message Index

Go to full version