pebcak 0 Posted April 8, 2007 I have a short intro script that I would like all clients to run on joining. How do I call this script, called titles.sqs, from within the init.sqs file? As the intro takes about 30 seconds to complete, is there a way for this script to be called by init.sqs without the processing of the rest of the init.sqs script pausing until the titles.sqs script is complete? Does this make any sense..? Share this post Link to post Share on other sites
shuko 59 Posted April 8, 2007 http://community.bistudio.com/wiki/exec Share this post Link to post Share on other sites
pebcak 0 Posted April 8, 2007 Yeah, I read that. The query I have is if I put that call into the init.sqs file will the remainder of that init.sqs file only run after that call has completed? Share this post Link to post Share on other sites
Dark_vityaz 0 Posted April 8, 2007 If I got u right,you want to put your titles.sqs into init.sqs.Why not? It's auto script,it appears when just the mission begins. So the first line in init.sqs must write [] exec "titles.sqs".And then another comands Share this post Link to post Share on other sites
mandoble 1 Posted April 8, 2007 in init.sqs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> mycutscenefinished = false []exec"yourcutscene.sqs" @mycutscenefinished .... Rest of init.sqs code .... At the end of yourcutscene.sqs put mycutscenefinished = true If you convert titles.sqs into titles.sqf, then you may use a different way: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _script=[]execVM"yourcutscene.sqf" @scriptDone _script .... Rest of init.sqs code .... Share this post Link to post Share on other sites