Jump to content
Sign in to follow this  
excruciator

Problem with tasks completed

Recommended Posts

I've just made a very simple mission, get in the city and kill all OPFOR.

So, there's a trigger in there that covers the city and says that if there are no OPFOR then the mission ends.

But now I just need to make a task (did this alrdy), but the problem is that the task is or not completed (neither when I killed all OPFOR) or the task is always completed, also when there are still opfor.

So what I want is that when I killed all the OPFOR, then the task should have that green checked box from "completed"

Anyone that can help me with this ?

Until now I've got the following (with this the task is always completed)

A briefing.sqf

player createDiaryRecord["Diary", ["Briefing", "Your mission today is to eliminate all enemy's in Elektrozavodsk."]];

tskobj1 = player createSimpleTask["Clear the City"];

tskobj1 setSimpleTaskDescription["Clear the whole city, but don't make any civilian Causalties"];

tskobj1 setSimpleTaskDestination (getMarkerPos "obj1");

player setCurrentTask tskobj1;

tskobj1 setTaskState "SUCCEEDED";

And in the trigger --> On. Act.

obj1 settaskstate "succeeded"; obj1done = true

I think the problem is in this sentence: tskobj1 setTaskState "SUCCEEDED";

Because I think that it says that the mission will always be succeeded, anyone can help me with this ?

Gr, excruciator

Share this post


Link to post
Share on other sites

make it :

tskobj1 setTaskState "ACTIVE"; 

plus you need to fix the typo :

obj1 settaskstate "succeeded"

it should be :

tskobj1 settaskstate "succeeded"

Share this post


Link to post
Share on other sites

Yes. Delete this line (tskobj1 setTaskState "SUCCEEDED") in the briefing.

@Junker :" ACTIVE" was the "old" objective status. It doesn't seem to exist in ArmA anymore. Possible values of taskstate are : "None, Created, Assigned, Succeeded, Failed, Canceled".

Share this post


Link to post
Share on other sites
Yes. Delete this line (tskobj1 setTaskState "SUCCEEDED") in the briefing.

@Junker :" ACTIVE" was the "old" objective status. It doesn't seem to exist in ArmA anymore. Possible values of taskstate are : "None, Created, Assigned, Succeeded, Failed, Canceled".

works for me :)

Edit: nvm im a noob ;) thnx for the heads up :)

Edited by Junker

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  

×