Jump to content
Sign in to follow this  
tophe

Make trigger or script wait until "Recieving" is gone.

Recommended Posts

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

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

Hehe... kudos for that. Get back to me after sleep...

Share this post


Link to post
Share on other sites

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

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

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

hehe... I hear you bro. I'll get to it tonight.

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  

×