Jump to content
Sign in to follow this  
[PAC] VOY

How repair a object?

Recommended Posts

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

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 wink_o.gif .

Share this post


Link to post
Share on other sites

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
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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×