Jump to content
Sign in to follow this  
hiddengearz

[Help] Script issue

Recommended Posts

I need a bit of help with this script i made. I realized once in multiplayer it won't work unless the bots are playing as well. It's obvious why but i have no idea how to replicate what the script does with out making in 10x longer than it is. Does anyone know how to make it work without the bots being present in multiplayer?

Edit: Just though of would ( ((!opfor1 in (list AO)) and (opfor1 == player)) and repeat ) work?

while {currentround <= totalrounds } do
{


if ( !(opfor1 in (list AO)) and !(opfor2 in (list AO)) and !(opfor3 in (list AO)) and !(opfor4 in (list AO)) and !(opfor5 in (list AO)) and !(opfor6 in (list AO)) and !(opfor7 in (list AO)) and !(opfor8 in (list AO))  ) then {

_null = [] ExecVM "scripts\Engine\opforwin.sqf";

};	


if ( !(blufor1 in (list AO)) and !(blufor2 in (list AO)) and !(blufor3 in (list AO)) and !(blufor4 in (list AO)) and !(blufor5 in (list AO)) and !(blufor6 in (list AO)) and !(blufor7 in (list AO)) and !(blufor8 in (list AO))  ) then {	

_null = [] ExecVM "scripts\Engine\bluforwin.sqf";

};	
};

Edited by hiddengearz

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  

×