Home   Help Search Login Register  

Author Topic: destroying objects in ArmA  (Read 1454 times)

0 Members and 1 Guest are viewing this topic.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
destroying objects in ArmA
« 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

Offline Rommel92

  • Members
  • *
Re: destroying objects in ArmA
« Reply #1 on: 21 Jun 2008, 12:26:46 »
condition: getDamage target01 == 1
condition: !alive target01

 :dunno:

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: destroying objects in ArmA
« Reply #2 on: 22 Jun 2008, 00:15:42 »
I tried both and neighter didn't work. Oddly enough there weren't any errors.   ???

tcm

Offline Luke

  • Members
  • *
  • Thank God! The OFPEC Staff are here!
Re: destroying objects in ArmA
« Reply #3 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
Pesky Human!!
Wort Wort Wort.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: destroying objects in ArmA
« Reply #4 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

Offline Rommel92

  • Members
  • *
Re: destroying objects in ArmA
« Reply #5 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:

Offline Luke

  • Members
  • *
  • Thank God! The OFPEC Staff are here!
Re: destroying objects in ArmA
« Reply #6 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
Pesky Human!!
Wort Wort Wort.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: destroying objects in ArmA
« Reply #7 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:

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: destroying objects in ArmA
« Reply #8 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.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: destroying objects in ArmA
« Reply #9 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

« Last Edit: 22 Jun 2008, 22:17:20 by Trash Can Man »