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
-
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
-
condition: getDamage target01 == 1
condition: !alive target01
:dunno:
-
I tried both and neighter didn't work. Oddly enough there weren't any errors. ???
tcm
-
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
-
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
-
Theres your problem, I'm not aware of ID number tests, however if you've assigned a variable to it should work.
Try a:
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:
-
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
-
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:
-
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:
damage ((position target01) nearestObject 8011) == 1
What Luke suggested won't work because the command object doesn't work in ArmA.
-
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