Jump to content
Sign in to follow this  
archer950

Simple trigger question

Recommended Posts

I would like to know how to make a text message apear when any of the players get into a certain vehicle.

Share this post


Link to post
Share on other sites

A good answer to your question smile.gif

Place a west soldier.

Give him the name sol.

Place a car and name it to car

Now create a trigger.

Activation = West

Erase True in condition and write:

Condition = sol In car

On Activation = Hint "Move too Everon airport and beware of enemy roadblocks"

Now exit the trigger window and press Preview and get into the car. A small message will pop up on the left side on the screen. You can of course change the message I wrote.

Whats happends?

The trigger will not activate in the start becuase it is false that sol are in the car. When you get into the car, the trigger suddenly are true and the trigger activates.

You can change hint to:

HintCadet = the message will only pop up if you playing on Cadet mode.

HintC = the message will pop up, but not on the left side on the screen, in the middle. The currently game will be paused and you need to press continue to continue ):. This is a very important script if you want to be sure that the player see the message.

I hope this will help you with your mission.

(sorry for bad english tounge.gif )

/EagleEye

PS: for more info about scripting, please enter Operation Flashpoint Editing Centers Codesnippets

Share this post


Link to post
Share on other sites

Thanks for answering my question. I will definetly try that. I need a little extra help though. you see I want anybody who gets in the vehicle to see the message. not just one person.

P.s. It's a MP mission

Share this post


Link to post
Share on other sites

Hm...

I think the "crew" command would work here

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">

crew vehicle

Operand types:

   vehicle: Object

Type of returned value:

   Array

Description:

   All units mounted in given vehicle. If vehicle is not vehicle, but person, list containing only person is returned.

Example:

   crew vehicle player

<span id='postcolor'>

Maybe something like:      btw: !  is same as not

Condition:  !(count crew vehicle jeep1 == 0)

On Activation = Hint "Move too Everon airport and beware of enemy roadblocks"

Or something like that, got really NO idea if you can use COUNT on CREW command

Share this post


Link to post
Share on other sites

The above works! smile.gif

For one unit:

Con: count crew vehicle jeep1 == 1)

Activ: hint "Move to blabla"

For Two units:

Con: count crew vehicle jeep1 == 2)

Activ: hint "You and your mate move to blabla"

You can also do it like this:

Trigger one:

Con: true

On Activ: max = count units L1 (L1 is your name..)

Trigger two:

Con: (Count cew vehicle jeep == max)

On Activ: hint "Move to bla bla bla"

Depends on how lazy you're etc tounge.gifsmile.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×