Jump to content
Belial0harvester

Trouble with mission start order

Recommended Posts

Hi there,

I looked everywhere I could think of but alas, did not find a solution to that issue I'm facing.

I'm not very good at scripting but I usualy overcome obstacles by finding answers on the Internet, only this time it seems that I am stuck.

I created a SP mission which has a rather long intro and a briefing. What I want to do, is to have the briefing first, then the intro, and finally the mission itself.

At first, the intro was part of the mission but then there was no way to skip it and since its quite long, testing the mission is a rather lenghty process. Plus I want to have the ability to skip it once the whole mission is done and ready.

So I chose "intro" from the drop down menu on the top bar of the editor and proceeded to copy paste only what was required from the scenario itself.

I changed the player into a camera, created an intro.sqs file and then changed the init field of said player so that it would execute the script, etc...

Everything worked well until I realized after exporting it to SP missions that my briefing was only visible AFTER the intro played, which kind of ruins the whole spriit of the thing.

I'm afraid I'm at a loss as to how one can change the order of the different elements of a mission.

I wanted intro.sqs to load only after the briefing bit is done.

To no avail, I tried :

- forcing the execution of diary.sqf before intro.sqs in initPlayerLocal.sqf but it won't work. I also tried to use triggers instead but no sucess there either.


- adding a blank briefing.html file in the mission folder, although it seems more destined to solve issues with briefing not showing at all, whereas I do have mine, just not when I want it.


- not launching the intro.sqs file through an init field but rather use an initIntro.sqs file in the mission folder, the result beeing an error about a sleep command in the script.

If anyone has an idea, I'm all hears.
 

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

×