FredTche 10 Posted July 4, 2013 I'd like to make a trigger that activates if the extraction helicopter's main rotor is too damaged (to the point of it not being able to fly). I tried fiddling around with most of the commands I found in the BIS wiki that had "damage" or "dammage" in them, but I'm pretty sure the formatting is tricking me. Are any of the skilled scripters out there willing to help? Share this post Link to post Share on other sites
kylania 568 Posted July 4, 2013 I think getHitPointDamage works, but haven't tested it yet. Share this post Link to post Share on other sites
FredTche 10 Posted July 4, 2013 Brace yourself (lol) , cause I have a lot of questions regarding (vehicle player) getHitPointDamage "hitEngine"; 1)Where would I insert the amount of damage? 2)Also, is "vehicle player" one single term or "vehicle and player? If they are two separate terms what would player be? 3)Where can I find the hitpointname's? 4)Should I add something like "== 0.8" at the end? Share this post Link to post Share on other sites
kylania 568 Posted July 4, 2013 I used < 1 for when I used it to check for a repair. == would be bad since it's gonna be tricky getting exactly that value. Something like >= 0.6 maybe? 1. (vehicle player) getHitPointDamage "hitEngine" >= 0.6 as a condition in a trigger. 2. It's a command and an object. vehicle player means "the vehicle that the player is in". A good test to see if you're out of a vehicle is: vehicle player == player 3. Config viewer, the gear icon at the top. 4. See above. Share this post Link to post Share on other sites
FredTche 10 Posted July 4, 2013 Given that I am a noob in editing, where in the config viewer can I find the "hitengine" for the main rotor? That is, if I am supposed to replace "hitengine" (I'm a bit confused). Also, I know the value has to be between 1 and 0, but I don't understand if it representes how much damage the rotor has taken or how many hitpoints it still has. Would 1 be a destroyed main rotor or a fully functional one? Share this post Link to post Share on other sites
kylania 568 Posted July 4, 2013 1 would be destroyed. 0 fully repaired. HitPoints i think is the config section, but i'd have to check. Mid game at the moment so can't though. :) Share this post Link to post Share on other sites
FredTche 10 Posted July 4, 2013 I don't really know how to use the config viewer, but I couldn't find a HitPoints sections. Just to check if I'm not lost: I'm supposed to use the config viewer to find a name for the main rotor that will replace hitEngine? Share this post Link to post Share on other sites
kylania 568 Posted July 4, 2013 Yeah, you could try the HitHRotor from Take On in a pinch. Share this post Link to post Share on other sites