[PAC] VOY 0 Posted January 16, 2007 I dont remember how it was in OFP. Plz help ppl. If hospital ( H1 ) is destroyed how I can repair this? I remember: H1 setdammage 0 but how was firt line? ( H1 getdammage >0.5 ? ) Thx for help me. Share this post Link to post Share on other sites
Deadfast 43 Posted January 16, 2007 Place trigger. Into condition field put: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">damage ObjectName => DamageValue For example: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">damage car => 0.5 And then into on activation filed put desired action example: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">car setDamage 0 - If object called "car" will be damaged to value 0.5 than it'll be automaticly repaired. I hope this is what you want . Share this post Link to post Share on other sites
[PAC] VOY 0 Posted January 19, 2007 Do you test this in ArmA editor? I see some error mass.: fatal error: damage car [#]=> 0.5 Maybe You can make me small simple mission? Share this post Link to post Share on other sites
weedomatic 0 Posted January 19, 2007 fatal error:damage car [#]=> 0.5 You are using an illegal operator. Greater than or equal to is implemented as x >= y Share this post Link to post Share on other sites
Deadfast 43 Posted January 19, 2007 Yeah, sorry, I've swapped = and > It's just like weedomatic said: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> damage car >= 0.5 Share this post Link to post Share on other sites