Jump to content
Sign in to follow this  
Phonix644

Making A Trigger For Objectives

Recommended Posts

Hi,

I'm new to the forum and this is my first post,

I am trying to make a trigger so that when units are dead in an area the objective is completed and it says something like "Objective 1 completed". I'm not really sure how to do this - I have already established that I have to set the activation to OPFOR and for them not to be present, but what would I put the 'type' to - guessing not end 1 :P

I’m guessing this would require a bit of coding which I ain’t good at yet so some help would be great thanks :D

Share this post


Link to post
Share on other sites

nothing.

You could just in the field On Activation write:

hint "Objective complete"

If you've made a briefing, you would also update the objective state by executing your code from the on activation field.

"1" objStatus "DONE"; tskobj_1 setTaskState "SUCCEEDED"; Hint "Objective complete.";

tskobj_1 being the name of your task in your briefing.

Edited by speeder

Share this post


Link to post
Share on other sites
nothing.

You could just in the field On Activation write:

hint "Objective complete"

If you've made a briefing, you would also update the objective state by executing your code from the on activation field.

"1" objStatus "DONE"; tskobj_1 setTaskState "SUCCEEDED"; Hint "Objective complete.";

tskobj_1 being the name of your task in your briefing.

Thanks Mate Worked Like A Charm! :D

Share this post


Link to post
Share on other sites
""1" objStatus "DONE";" is from OFP and is not used in ArmA2's task system.

You'd also use taskHint rather than hint.

taskhint ["Task Succeeded!\nGood job!", [0.600000,0.839215,0.466666,1], "taskDone"];

Here's a task demo using briefing.sqf and here's one using just triggers.

What he said.

I copied from an mission collection I had, and must have picked the wrong folder. Sorry. But nice to know you got it working. :yay:

Share this post


Link to post
Share on other sites

Try it with aktivation anybody en seized by bluefor ^^

Hi,

I'm new to the forum and this is my first post,

I am trying to make a trigger so that when units are dead in an area the objective is completed and it says something like "Objective 1 completed". I'm not really sure how to do this - I have already established that I have to set the activation to OPFOR and for them not to be present, but what would I put the 'type' to - guessing not end 1 :P

I’m guessing this would require a bit of coding which I ain’t good at yet so some help would be great thanks :D

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  

×