Acecool 0 Posted December 29, 2010 Hey, how do you check engine damage in a car? I know you can damage it by doing this setHit["motor", 1]; But, how do you check the status of the damage? I am adding a new variable into my turbo script, how well the turbo performs based on the damage of the turbo/engine! Engine/turbo damage both occur during boost spikes which happen on poorly tuned cars :-) I should be making a racing mod lol.... Share this post Link to post Share on other sites
sickboy 13 Posted December 29, 2010 There is no getHit currently (love to have it though). canMove should at least tell you if the vehicle can still move (working engine+tracks/wheels). If you want to track it, you will have to do two things: - Track the engine induced damage (use handleDamage eventhandler, store the damage per selection with setVariable on the vehicle, and return the damage again so the engine processes it) - Track your own usage of setHit, and record these in the setVariables Then you can use getVariable to get the current status of the selection on the vehicle. Though, all bets are off, once other mods / mission scripts are introduced that use setHit directly :) and probably also when they have their own handleDamage EH. Share this post Link to post Share on other sites
ww2weasel 10 Posted December 29, 2010 setHit["motor", 1]; errrrrrrm - this is an ARMA2 command - might have put in wrong forum. This is an opflash forum. Share this post Link to post Share on other sites