Jump to content
Bernd Geischer

Mission "Flashpoint" by ThomsonB

Recommended Posts

Is anyone still interested in ThomsonB's Flashpoint-Mission? I'm trying to define some more objects (tasks), called by the intial script "objective.sqf". Idea is to call another skript by using the initial variable "end_mission=true;" I don't get even to the point where my next sctript is called. This is the call:

 

if (end_mission) then {[] execVM "obj_EndMission.sqf";}; // Check of the  variable "end_mission"=true" for calling the next script.

 

And that is the next skript:

 

hint "Objective completet!";

sleep 1;

    _endTrig = createTrigger ["EmptyDetector",_pos];
    _endTrig setTriggerTimeout [10,10,10,true];
    _endTrig setTriggerStatements ["end_mission","",""];
    _endTrig setTriggerType "END1";

 

Thanx for help

Share this post


Link to post
Share on other sites

 

10 hours ago, Bernd Geischer said:

hint "Objective completet!";

sleep 1;

    _endTrig = createTrigger ["EmptyDetector",_pos];
    _endTrig setTriggerTimeout [10,10,10,true];
    _endTrig setTriggerStatements ["end_mission","",""];
    _endTrig setTriggerType "END1"; 



try like this:

hint "Objective completed!";
sleep 1;
_endTrig = createTrigger ["EmptyDetector", _pos];
_endTrig setTriggerTimeout [10, 10, 10, true];
_endTrig setTriggerStatements ["true", "end_mission", ""];
_endTrig setTriggerType "END1";


I'm not an expert, so at least you have something until someone shows up, try and see if you get lucky.

Share this post


Link to post
Share on other sites

Hello, do you have -showScriptErrors in your game launch settings? Very useful for finding errors in scripts.

 

@dalber24 post above

and

Quote

if (end_mission) then {execVM "obj_EndMission.sqf";};

should work. Here is an attachment of the mission I used for testing:

https://drive.google.com/drive/folders/1ZueIZ6QB7EfgghwYxMYSJJp0MxPQmIlH?usp=sharing

Share this post


Link to post
Share on other sites

I know the option, but I only read that code and made the correction, I didn't even run the game.


For that reason I said that he should try it to see if it worked for him, and that he should wait for someone with more knowledge, which obviously wasn't me.😅😂

Share this post


Link to post
Share on other sites

I wasn't directly replying to you but rather referencing to the script you posted 😁 I used it in conjunction with my solution

  • Like 1

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

×