Litos 10 Posted October 12, 2009 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
wheres my rabbit ? 10 Posted October 12, 2009 (edited) 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 October 12, 2009 by wheres my rabbit ? Share this post Link to post Share on other sites
nichevo 2 Posted October 12, 2009 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
Litos 10 Posted October 12, 2009 Thank you very much! It worked. I really appreciate it! Share this post Link to post Share on other sites
galzohar 31 Posted October 12, 2009 Keep in mind using player will only work as expected in single player. Share this post Link to post Share on other sites
Deadfast 43 Posted October 12, 2009 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
Litos 10 Posted October 12, 2009 Thanks guys, the last one is what I originally wanted but both fit well. Share this post Link to post Share on other sites