OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Trash Can Man on 21 Jun 2008, 06:12:09

Title: destroying objects in ArmA
Post by: Trash Can Man on 21 Jun 2008, 06:12:09
I am making a mission in which part of the mission objective is destroying and object that's already on the island. after doing a bit of searching, all I could find was this:

Condition: (getDammmage target01) == 1

when I applied it, I got an error say missing ). what do I put in the condition field of a trigger showing a specific target has been destroyed?

TCM
Title: Re: destroying objects in ArmA
Post by: Rommel92 on 21 Jun 2008, 12:26:46
condition: getDamage target01 == 1
condition: !alive target01

 :dunno:
Title: Re: destroying objects in ArmA
Post by: Trash Can Man on 22 Jun 2008, 00:15:42
I tried both and neighter didn't work. Oddly enough there weren't any errors.   ???

tcm
Title: Re: destroying objects in ArmA
Post by: Luke on 22 Jun 2008, 02:06:42
TrashCanMan;

was this a vehicle or person of somesort?

Cause there should be no problem if it was, but I don't know about objects. such as buildings.

Luke
Title: Re: destroying objects in ArmA
Post by: Trash Can Man on 22 Jun 2008, 03:16:10
it's actually a radio tower on Sahrani (southern). The ID number is 8011. I've tried a few combinations and came up blank.  :dunno:

tcm
Title: Re: destroying objects in ArmA
Post by: Rommel92 on 22 Jun 2008, 03:24:51
Theres your problem, I'm not aware of ID number tests, however if you've assigned a variable to it should work.

Try a:
Code: [Select]
target1 setdamage 1;

In a radio trigger, if it gets destroyed, then I have no idea. If it doesnt, then check your assigning of the variable among other things.

 :good:
Title: Re: destroying objects in ArmA
Post by: Luke on 22 Jun 2008, 05:27:45
TCM,

If you were to unPBO the laser guide mission in ofp resistance there was some way of getting the bridge damage to see if the lgbs hit.

It was something like [(object #######) getdammage = 1]. Maybe it might work in ArmA

I'd tell you how to do it exactly, but I don't quite remember.

Luke
Title: Re: destroying objects in ArmA
Post by: Trash Can Man on 22 Jun 2008, 06:23:14

It was something like [(object #######) getdammage = 1].

well, this didn't work either....

@romm I tried what you suggested, but still came up empty. Maybe this just isn't possible.  :dunno:
Title: Re: destroying objects in ArmA
Post by: h- on 22 Jun 2008, 13:14:45
It's possible and quite easy infact.

Place a game logic near or on the radio tower, name it something, like target01.

Then the trigger condition:
Code: [Select]
damage ((position target01) nearestObject 8011) == 1

What Luke suggested won't work because the command object doesn't work in ArmA.
Title: Re: destroying objects in ArmA
Post by: Trash Can Man on 22 Jun 2008, 18:11:30
After trying "h's" idea, it still didn't work. here is how I set his proposal up: let me know what went wrong.  ???

ok, I went back using an old reliabe trick by connecting the object to a trigger. Thanks very much for all your help.

TCM