init.sqf
private ["_showIntro"];
if (isMultiplayer) then
{
// Multiplayer get choice, but never see it if JIP.
_showIntro = (param1 == 0) and (not isNull player);
}
else
{
// Single player people like intros.
_showIntro = true;
};
if (_showIntro) then {[] exec "film.sqs"} else {if (isServer) then {introdone = true; publicVariable "introdone"}};
How do I make introdone=true NOT happen until the intro is over (or skipped by: param1 == 1) for a game on a dedicated server? If intro is chosen, film.sqs makes introdone=true at the end of that script.
As it is now I believe introdone=true happens from mission start on a dedi, while the intro is running for the players. NOT GOOD!
Would this work:
_showIntro = (param1 == 0) and ((not isNull player) or (isDedicated));
I suspect this will make the intro run also on the dedi, which could be OK.
Or:
if (_showIntro) then {[] exec "film.sqs"} else {if (isPlayer) then {introdone = true; publicVariable "introdone"}};
I guess this will have any JIP during the intro make introdone=true, which could cause problems.
Is there a perfect solution?
Extremely grateful for help, this stuff is making my brain bleed.
Laggy