Jump to content
Sign in to follow this  
Yab

Mission ending

Recommended Posts

I want to do something like this:

-You start in point A

-You go to point B and blow sth up

-You go to point C and kill sb

-You return to point A and mission ends

How to mak that mission ends AFTER objectives are done AND only player or player's team trigger mission end after reaching their starting point? I know that there is something like that "0" objstatus "DONE" but even if it is not still done the mission ending trigger is run

Share this post


Link to post
Share on other sites

You could set a variable to TRUE when the objStatus is set to DONE.

Let's say you have i trigger that is set to go off when a car has been destroyed.

On activation put : "0" objStatus "DONE"; yb_obj = true

And in the ending trigger set: this and yb_obj == true

That will allow you to have the trigger go off only when the objective is done AND when they are back.

I hope you understand how I mean.

Share this post


Link to post
Share on other sites

doesnt work, lots of errors

Share this post


Link to post
Share on other sites

make a loop "loops forever. as long as b and c got 0 dammage. checks the dammage of obj b and c with a cyclus of ex 3 secs. then when thouse are 1. make a wawepoint at pos a , then make a trigger in the script there which has setTriggerType "END1" at pos a;

Share this post


Link to post
Share on other sites
make a loop "loops forever. as long as b and c got 0 dammage. checks the dammage of obj b and c with a cyclus of ex 3 secs. then when thouse are 1. make a wawepoint at pos a , then make a trigger in the script there which has setTriggerType "END1" at pos a;

so nothing simpler?? C'mon, I dont believe that U cant do it without external, special scripts. Almost every single and coop mission has some tasks to complete, like operation overlord (MP)

Share this post


Link to post
Share on other sites

I guess it would just take to much time and effort to post a comprehensive answer to your request. There are tutorials for OFP that deal with all that.

In basics. Set up triggers for your objectives, like not alive, getdammage, east not present or whatever and then in OnActivation have conditions set to be true so that the trigger will confirm it´s completion, like 1stobj = true, 2ndobj = true....

In your final trigger you question all the previous triggers by putting

1stopbj AND 2ndobj AND .....

in the Condition field

In the upper dropdown select End#(choose any you like)

and the mission will end.

If you want to have objectives that are ticked when they are fulfilled you have to add that in briefing and init.sqs and set the objectives to "Done" within the trigger OnActivations.

Seriously, check out the the old OFP Mission editing FAQ. The answers are all there waiting for you.

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  

×