Jump to content
Sign in to follow this  
ravsun

Addaction with Condition.

Recommended Posts

Hey guys,

Is there anyway to not show a action when a trigger has been activated?

Here is what i have so far.

{

If (mis1complete) Then {player removeAction mis1};

sleep 1.0;

};

mis1 = player addaction [""<t color="#FF8400"">" +"Capture AAC Airfield","ops\aac.sqf","",1,false,true,"","]

mis2 = player addAction ["<t color="#FF8400"">" +"Seek and Destroy Large OA", "ops\helo.sqf];

mis3 = player addAction ["<t color="#FF8400"">" +"Destroy Power Plant", "ops\pwr.sqf];

And i have a trigger with activation with mis1complete = true.

I know there is a way to add it to the action script but i cant figure out the syntax.

Thanks

Rav

Share this post


Link to post
Share on other sites
mis1 = player addaction [""<t color=""#FF8400"">" +"Capture AAC Airfield","ops\aac.sqf","",1,false,true,"","!(triggerActivated triggerName)"];

Share this post


Link to post
Share on other sites

That does not work for me.

I have a simple hint trigger named trig2.

I have a trigger that activates the script.

mis1 = player addaction [""<t color="#FF8400"">" +"Capture AAC Airfield","ops\aac.sqf","",1,false,true,"","!(triggerActivated trig2)];

mis2 = player addAction ["<t color="#FF8400"">" +"Seek and Destroy Large OA", "ops\helo.sqf];

mis3 = player addAction ["<t color="#FF8400"">" +"Destroy Power Plant", "ops\pwr.sqf];

I need mis1 addaction to now showup after trig2 has been activated.

Thanks for the quick help.

Share this post


Link to post
Share on other sites

If you want it to only show after the trigger is activated take off the "!" in the condition field in my example.

Share this post


Link to post
Share on other sites

You have misspelled triggeractivated in your code.

mis1 = player addaction [""<t color=""#FF8400"">" +"Capture AAC Airfield","ops\aac.sqf","",1,false,true,"","triggeractivated trig2"];

Share this post


Link to post
Share on other sites

I need the condition to Only show Action when "trig2" has NOT been activated.

---------- Post added at 00:00 ---------- Previous post was at 23:57 ----------

BangaBod your scripts are awesome! BTW

Nevermind I see the mistake and now its working. Thanks guys!

Edited by ravsun

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  

×