Jump to content
Sign in to follow this  
Cotala Studios

Mission End through SQF

Recommended Posts

So I want the mission to end after a short dialogue with another player. How might I go about this? I tried using the following code but it doesn't work.

player sideChat "Is this Big Red?";
sleep 3;
red sideChat "Roger that. I assume this would be the Russian MVD team that was supposed to come and help us?";
sleep 5;
player sideChat "Yes we are.";
sleep 2; 
red sideChat "Good. I presume you had an interesting journy here?";
sleep 4;
player sideChat "You have no idea";
sleep 2;
red sidechat "Well, Make you self at home. And thank you for making it here.";
sleep 5; 
ForceEnd;

---------- Post added at 01:12 AM ---------- Previous post was at 12:12 AM ----------

nevermind, i found a work around. For those who need to know, I created a trigger setting end1 as the trigger type and "obj1;" minus the quotes as the condition. In my conversation, I edited the sqf to look like this:

player sideChat "Is this Big Red?";
sleep 3;
red sideChat "Roger that. I assume this would be the Russian MVD team that was supposed to come and help us?";
sleep 5;
player sideChat "Yes we are.";
sleep 2; 
red sideChat "Good. I presume you had an interesting journey here?";
sleep 4;
player sideChat "You have no idea";
sleep 2;
red sidechat "Well, Make you self at home. And thank you for making it here.";
"0" objStatus "DONE"; tskobj0 setTaskState "SUCCEEDED";[tskobj0] call mk_fTaskHint;
sleep 5; 
obj1 = true; publicVariable "obj1";

Share this post


Link to post
Share on other sites

Thanks. :) Too often someone posts how they fixed something, but do not bother to share.

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  

×