Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Commando84

end when all objectives are done

Recommended Posts

i have put in this code in the end#1 trigger activated by west in the activation line

Quote[/b] ]this && t1 && t2 && t3 && t4 && t5 && t6 && t7
and this code in the init.sqs file
Quote[/b] ]t1 = false;

t2 = false;

t3 = false;

t4 = false;

t5 = false;

t6 = false;

t7 = false;

but the mission doesn't end at all

and im having a bug with the briefing also when objective 5 is visible a marker for it apears but the briefing doesn't get updated. Also after objective 5 the briefing never gets updated but the markers on the map gets updated  tounge_o.gif

i tried searching tutorials and faq's at ofpec and the mission editing thread at this forum but it didn't help me out at much  sad_o.gif  i have tried to figure out a solution to this problem for a week now  crazy_o.gif

edit

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><! **** Objective 1 **** >

<p><a name="OBJ_1"></a>

Meet civilian contact

</p><hr>

<! **** Objective 2 **** >

<p><a name="OBJ_2"></a>

<a href = "marker:airbase2">Clear airbase of mi17's</a>

</p><hr>

<! **** Objective 3 **** >

<p><a name="OBJ_3"></a>

<a href = "marker:airbase1">Destroy all Mi24 attack choppers</a>

</p><hr>

<! **** Objective 4 **** >

<p><a name="OBJ_4"></a>

<a href = "marker:a1">Search & destroy all shilkas</a>

</p><hr>

<! **** Objective 5 **** >

<p><a name="OBJ_5"></a>

<a href = "marker:tankbase1">Destroy all tanks & shilkas</a>

</p><hr>

<! **** Objective 6 **** >

<p><a name="OBJ_6"></a>

<a href = "marker:fueldepot">Destroy all Oil tanks & power generators</a>

</p><hr>

<! **** Objective 7 **** >

<p><a name="OBJ_7"></a>

<a href = "marker:a2">Destroy all Su-25's</a>

</p><hr>

the objectives part in the briefing looks like that wink_o.gif

Share this post


Link to post
Share on other sites

When you're having trouble with triggers like this the trick is to isolate where the problem is.

Put a unit in the right place so that the "this" part of your trigger is satisfied. Now create a new trigger:

Countdown 3 3 3

Condition: true

On activation: t1=true; t2=true; t3=true; etc

Your mission should end 3 seconds after it starts. If it doesn't, take out the "this" part and try that. And so on: chop the problem up until you find exactly where the problem really is. Once you've found it, I bet solving it is really easy.

As for the objectives not ticking thing, its really simple. You haven't issued the tick objective command. You think you have, but you haven't. Very frustrating. If you already know how to make objectives tick then tutorials won't help you: there is an error in your code somewhere.

Share this post


Link to post
Share on other sites

yeah strange is that 1-4 objectives shows up really good, but the fifth objective is not showing up at all, only the marker on the map shows up, i got the code done the same way like in the other triggers and i can't figure out whats wrong in the code  sad_o.gif

i'll try what you have sugested and post back how it went tomorow

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  

×