Jump to content
Sign in to follow this  
Litos

Ending mission trigger question...

Recommended Posts

Hey guys, I have a question about ending the mission.

I want to make a trigger that ends the mission only when I, the player, gets in range of it. The reason is because other people will walk by it before I do, from both opfor and blufor. But I want it so that only when I walk by the mission ends.

I'm sure this is easy but I just don't know and can't find the right script so whoever can tell me it I'd really appreciate it, thanks.

Share this post


Link to post
Share on other sites

i think if you just sync the trigger the the unit you want to be the one to activate it that should work

edit: group the trigger to the unit it will give you some different options under activation

Edited by wheres my rabbit ?

Share this post


Link to post
Share on other sites

There's a few ways to do this but IMHO the easiest is to place some sort of scenery object, unit, or game logic, give it a name, and test for the player coming near it in a trigger something like this:

Condition: player distance myObject < 100

On Activation: endmission "end1"

In the example above, the mission will end when the player gets within 100 metres of the object you named "myObject".

Share this post


Link to post
Share on other sites

Thank you very much! It worked. I really appreciate it!

Share this post


Link to post
Share on other sites
There's a few ways to do this but IMHO the easiest is to place some sort of scenery object, unit, or game logic, give it a name, and test for the player coming near it in a trigger something like this:

Condition: player distance myObject < 100

On Activation: endmission "end1"

In the example above, the mission will end when the player gets within 100 metres of the object you named "myObject".

Alternative using the trigger area itself:

Activated by: side the player is on

Condition: player in thislist

Share this post


Link to post
Share on other sites

Thanks guys, the last one is what I originally wanted but both fit well.

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  

×