Bernd Geischer 0 Posted October 9 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
dalber24 165 Posted October 9 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
Kosmo_ 43 Posted October 20 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
dalber24 165 Posted October 20 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
Kosmo_ 43 Posted October 22 I wasn't directly replying to you but rather referencing to the script you posted 😁 I used it in conjunction with my solution 1 Share this post Link to post Share on other sites