OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: karitzsa on 31 May 2006, 14:05:16

Title: How do trigger identify certain unit? Only tank named "tank1" triggers?!
Post by: karitzsa on 31 May 2006, 14:05:16
 :-[ I'm making my first mission wich includes some code. And now I wonder how can I get a trigger print  message like "Oh my god, tanks!!" when enemy tank goes to location/ comes detected by my men? I now know how to trigger that kind of message when ANY enemy goes through a trigger, but certain?

I am a noob I know.

And how do you use synchronize button? I've tried to push it and everything but got nothing to happen...?

Thank you very much for your time!
Title: Re: How do trigger identify certain unit? Only tank named "tank1" triggers?!
Post by: XCess on 31 May 2006, 16:56:00
To make a triiger execute when a specific unit passes through click group and drag from the unit to the trigger.

To synchronise a unit with a trigger, drag a sync line from the trigger to the wayoint of a unit you want the unit to stop at. only when the trigger's conditions are met will the units continue through their waypoints.
Title: Re: How do trigger identify certain unit? Only tank named "tank1" triggers?!
Post by: klavan on 31 May 2006, 20:53:06
:-[ I'm making my first mission wich includes some code. And now I wonder how can I get a trigger print  message like "Oh my god, tanks!!" when enemy tank goes to location/ comes detected by my men? I now know how to trigger that kind of message when ANY enemy goes through a trigger, but certain?

Or you can give the tank(s) a name and write in the trigger condition field:
Code: [Select]
NameOfTheScaringTank in thislistDon't forget to set up the triggers side activation condition (east/west/etc...) properly.
Klavan
Title: Re: How do trigger identify certain unit? Only tank named "tank1" triggers?!
Post by: Flauta on 31 May 2006, 20:54:54
The Sinchronization botton is ideal for scripting Reinforsments and for combined attack or operations.. there are also various tricks you can find out.. like make a AI Helo pick up an IA group... try it sinchronisating the "get in" and "load" waypoints into an heliport(invisible)... (I belive it was that way.. jeje)

Hope that helped..
Title: Re: How do trigger identify certain unit? Only tank named "tank1" triggers?!
Post by: Mikko Karikytö on 01 Jun 2006, 00:30:04
Thank you very much. That is all useful information for me editing my missions. I got it working and its good! ;D