Yuka 0 Posted December 18, 2007 Hi all, I did some searching but wasn't able to find anything solid about this. I'm editing a script that I found in the Evolution mission with goal of disabling the SLA's airborne Su-34, Su-34B, and the two Ka-50s that respawn continuously once the Pita objective has been completed. If you unpack the mission PBO, said scripts are: .\scripts\makeka.sqf .\scripts\makesu.sqf .\scripts\makeka.sqf They are all executed by .\scripts\sinit.sqf (makeka.sqf is run twice). I'm not sure where to put the code to check to see if the Pita primary objective has been cleared out. I tried in the trigger, which I thought would be a great place, but I have been unable to figure out how to Terminate it properly. How do I acquire the name of the handle for each script that is running in mission.sqm? Is this impossible this way because mission.sqm gets parsed and executed before the 3 scripts are executed in the mission initiation process? I'm new to this. I have experience with C++ from 5 years ago that has been coming in handy but not enough. Any assistance? I can provide example code if asked for. Share this post Link to post Share on other sites
5133p39 16 Posted December 18, 2007 I suppose those scripts are running server-side only, so you can try (among many other things) to check for the completed objective in those scripts, and if the objective is complete, you can simply delete the triggers (if they aren't used for anything else) Share this post Link to post Share on other sites
Yuka 0 Posted December 18, 2007 I added a conditional check to see if the objective was completed. In scripts\sinit.sqf I added a new global variable definition: pitacomplete = 0; In the Pita objective trigger, I made it set pitacomplete to 1. Then the conditional in each script checks to see if pitacomplete is equal to 1, if it is then it runs a sleep command for 24 hours. This seems to work fine, I'll test some more later this week to confirm. Share this post Link to post Share on other sites