OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: fancalenno on 28 Jan 2003, 04:53:47

Title: How to detect bridge that break or not?
Post by: fancalenno on 28 Jan 2003, 04:53:47
Does anyone know how to use trigger to detect bridge that break or not?

thanks
Title: Re:How to detect bridge that break or not?
Post by: Blacky on 28 Jan 2003, 15:35:18
Hmmm... I think you could do it by looking the bridgeÂ's ID number, but I canÂ't remember how the command line went. IÂ'll try to find it and post it here.
Title: Re:How to detect bridge that break or not?
Post by: Blacky on 28 Jan 2003, 16:05:35
Ok, try this:
not (alive object ????)

Put the ID number from the editor in ????.

I really donÂ't know if this works, gotta try it.

Title: Re:How to detect bridge that break or not?
Post by: fancalenno on 29 Jan 2003, 03:18:59
 
 thanks!

 I made it!     from another forum(ofp)...

  Crate a trigger for each bridge section,and put  
         damage (object 167669) >= 1     in the condition field.

where the 167669 is the object id of the first bridge section (you change this for every section,you can click the button "show ID" to see their ID in the mission editor.)

and in the Activation field of each put:
          bre = true;

then create another trigger and in the Condition field put:
          bre

in Type select End

Do not forget to initialize bre to false first.
      you can initialize this in player's init field!

Title: Re:How to detect bridge that break or not?
Post by: Blacky on 31 Jan 2003, 15:13:53
You can do it like I did it too.

inCondition field:
not (alive object 167669)
and just put the trigger to loose or end.

See ya around!