Jump to content
Sign in to follow this  
Sardinia

Having init trouble

Recommended Posts

exec "briefing.sqf";
exec "intro.sqs";

////////////SCRIPTS

{_x setVariable ["BIS_noCoreConversations", true]} forEach allUnits;
execVM "Scripts\DRN\DynamicWeatherEffects\DynamicWeatherEffects.sqf";

///////////RADIOS
7 setRadioMsg  "NULL";

///////////MARKERS
"stage2" setmarkeralpha 0;
"bad" setmarkeralpha 0;
"extract" setmarkeralpha 0;


///////////RESPAWN
myRespawns = 0;

while {true} do {
   waitUntil {!alive player};
   if (myRespawns >= 3) then {endMission "END1"};
   waitUntil {alive player};
myRespawns = myRespawns + 1;
};

Problems are if I have the intro.sqs line in there then the markers dont get hidden. Also if I add another line then the briefing doesnt show up. And I've never been able to get the radio command to work as it never fully disappears it just loses its assigned name. It's like I'm running out of space/time to run the file.

---------- Post added at 11:09 AM ---------- Previous post was at 10:00 AM ----------

was working, then i went back to edit the mission and its back to nto working again... i have the command line thing on and it keeps telling me im missing a ; on the same line even tho im not

---------- Post added at 11:15 AM ---------- Previous post was at 11:09 AM ----------

Well i moved the markers to the top, and it seems to work again.. which makes sense as i need them to fire before the briefing.. doesnt make sense that it worked before tho

---------- Post added at 11:25 AM ---------- Previous post was at 11:15 AM ----------

I take it back its doing it again

WTF

Current Init

"stage2" setmarkeralpha 0;
"bad" setmarkeralpha 0;
"extract" setmarkeralpha 0;
///////////
CheckVM = execVM "briefing.sqf";
exec "intro.sqs";
////////////
CheckVM = execVM "Scripts\DRN\DynamicWeatherEffects\DynamicWeatherEffects.sqf";
///////////
7 setRadioMsg "NULL"
///////////
myRespawns = 0;
while {true} do {
   waitUntil {!alive player};
   if (myRespawns >= 3) then {endMission "END1"};
   waitUntil {alive player};
myRespawns = myRespawns + 1;
};
waitUntil {!isNil "bis_fnc_init"}; 
BIS_Effects_Burn=compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";

---------- Post added at 11:39 AM ---------- Previous post was at 11:25 AM ----------

Doing the following waituntils fixes it.. dunno if i even did them right

"stage2" setmarkeralpha 0;
waitUntil {"stage2Done"};
"bad" setmarkeralpha 0;
waitUntil {"badDone"};
"extract" setmarkeralpha 0;
waitUntil {"extractDone"};
///////////

Share this post


Link to post
Share on other sites

The problem is in line number 0... you cannot start a SQF-file with "exec"-command. Use execVM instead!

;)

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  

×