tophe 69 Posted July 9, 2009 I have a sweeping camera that starts a mission. I tried initialized it through init.sqf and through a trigger set to TRUE. Both options start the camera script before the "recieving..." screen has finished for the players. So when the players get into the mission the camera sweep is almost over sine it has been going behind the black screen. Is there a way to get the script to check if the mission has finished loading? To get the script to hold until the "recieving..." has disappeared... Share this post Link to post Share on other sites
kylania 568 Posted July 9, 2009 Just check for the first teamkill, then you'll know they are loaded. :) (There's a way to do what you want, but I'm too sleepy to remember...) Share this post Link to post Share on other sites
tophe 69 Posted July 9, 2009 Hehe... kudos for that. Get back to me after sleep... Share this post Link to post Share on other sites
Tajin 349 Posted July 9, 2009 http://www.arma2.com/comref/full.html#onPreloadFinished ^- This might do the job Share this post Link to post Share on other sites
Eclipse4349 0 Posted July 9, 2009 One way you might be able to handle it is to make a trigger that times out after a specified amount of time, then use that trigger to trigger your camera sweep trigger. Say, for instance, that you named the time delay trigger "T-time". You would type into the condition field of the camera sweep trigger, "triggeractivated T-time". Not sure ho make a trigger time-limited, but there may be away. Just wanted to throw it out there in case it would work for you. Good luck! Share this post Link to post Share on other sites
tophe 69 Posted July 9, 2009 Thx guys. The timeout will not be a good solution since it never takes the same amount of time for it to start. I'll have alook at the onPreloadFinished... How is the syntax? Is it onPreloadFinished nul = execVM "script.sqf" or onPreloadFinished "nul = execVM ""script.sqf""" ?? Share this post Link to post Share on other sites
Tajin 349 Posted July 9, 2009 TryAgain = compile (preprocessFileLineNumbers "\trialanderror.sqf"); if (!right) then { ["wrong"] call TryAgain; }; ;) sorry can't tell you. Share this post Link to post Share on other sites
tophe 69 Posted July 9, 2009 hehe... I hear you bro. I'll get to it tonight. Share this post Link to post Share on other sites