OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Dog40Acoy on 21 Jul 2006, 16:31:59

Title: Destroying Objects
Post by: Dog40Acoy on 21 Jul 2006, 16:31:59
Ok I am sure this is fairly simple-

I want to destroy a fuel station as part of the mission objectives.

Say for example the ID number is 124034 of the fuel station. How do I make a script via a trigger that when the fuel station is destroyed it checks off the objective. I know all the eg "3" ObjStatus "DONE" bit, but have drawn a complete blank on how to trigger that when fuel station 124034 is destroyed.

TY in advance
Title: Re: Destroying Objects
Post by: Seven on 21 Jul 2006, 20:19:19
condition: getdammage (object 124034) >= 1;  probably  :)
Title: Re: Destroying Objects
Post by: Raptorsaurus on 22 Jul 2006, 00:34:08
Either
Code: [Select]
getdammage (object 124034) >= 1 as posted above or

Code: [Select]
! alive (object 124034)
Title: Re: Destroying Objects
Post by: Dog40Acoy on 25 Jul 2006, 10:45:04
Excellent thanks fellas

It works a treat.