that bit of code will indeed damage a vehicle but seems it is more intended for blowing it up rather than causing permanent damage. As soon as you enter vehicle after damaging it with that code it automagically repairs itself. How can I get persistent code? Is it with that get/setHit code? That seems terribly inefficient having to loop it to damage all parts concurrently.
Question
ViktorReznov
_damage = getDammage _vehClass;
_damaged = (_damage + 0.2);
vehicle _vehClass setDamage _damaged;
_damage2 = getDammage _vehClass;
that bit of code will indeed damage a vehicle but seems it is more intended for blowing it up rather than causing permanent damage. As soon as you enter vehicle after damaging it with that code it automagically repairs itself. How can I get persistent code? Is it with that get/setHit code? That seems terribly inefficient having to loop it to damage all parts concurrently.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now