OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Oskar on 30 Jan 2004, 20:40:27
-
Well, ive forgot how to do this mainly because i stopped playing OFP a while back ago. Now i need help, when the 2 targets are destroyed. An fuel truck (fuel) and an BMP2 (bmp), i want an text to appear saying that the targets is destroyed. I tried doing something like this, its how i remember doing it.
!alive fuel AND !alive bmp
but its not working :-\
Any help Apprecieted. Thanks
-
???
That should work...
Try it like this (in a trigger of course):
Condition: !(alive fuel) && !(alive bmp)
On Act.: hint "wuhii!!!"
BTW: that && and AND are the same thing...
Oh, and don't use names like fuel since it's a command... Use something else like myFuel and myBMP or something...
-
Ok, thanks. I'll try it
-
You have to watch out when using "alive" with vehicles. Sometimes it appears they are not "alive" but they haven't been truly destroyed yet (their dammage is <1).
This is a common problem on maps that us a "not present" trigger. Everyone can be killed but one tank can be still alive although it looks dead and no one is in it. You have to shoot it again to finish it off.
-
Yeah, "alive" doesn't really work with vehicles. I always use
(not canMove BMP1) and (not canFire BMP1)