Jump to content
Sign in to follow this  
rellikki

Condition to check if an object is destroyed

Recommended Posts

If I wanted to write something on the condition of a trigger to make it check if an object, already placed on the map is destroyed, what would I need to write? I tried:

!alive (object ID)

-but it didn't work. It gave me an error about missing (. Seemed to work alright in Flashpoint but not in Armed Assault.

Share this post


Link to post
Share on other sites

No more object in ArmA.

You'll have to use one of the different methods mentioned in the Wiki.

Share this post


Link to post
Share on other sites

you can use a trigger grouped with the object and make it activate when the object isn't present.

Share this post


Link to post
Share on other sites
If I wanted to write something on the condition of a trigger to make it check if an object, already placed on the map is destroyed, what would I need to write? I tried:

!alive (object ID)

-but it didn't work. It gave me an error about missing (. Seemed to work alright in Flashpoint but not in Armed Assault.

I actually use in the condition trigger this command...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">GetDammage vehiclename>=0.1

Once the vehicle or unit is killed, your activation is released.

If you want multiple vehicle damage then;

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">GetDammage vehiclename>=0.1 AND GetDammage vehiclename>=0.1

I tried this with Object once, but in 1.02 patch which worked. Not sure if it will work for 1.05.

It should work because under wiki's link it specifies that objects can be used...http://community.bistudio.com/wiki/getDammage

Share this post


Link to post
Share on other sites

My bad, I was looking at some official missions from Arma and noticed that in some campaigns were used both setdammage and getdammage for destroying objects.

I cannot tell you the mission name because it is translated in Russian and the translation maynot be accurate in english due to mission name, I would have translated to "the Takeover" or something of that sort.

If you have an idea of what I mean, then take a look at that mission and you should have an idea of how objects are destroyed.

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  

×