Jump to content
Sign in to follow this  
IKG40Razor

I deadly unable to execute script only for a certain group of players

Recommended Posts

my script should work only for 6 players (their names are p1, p2, p3, p4, p5, p6) in 1 group (let's call it mpGroup). Script, called drug2.sqf:

// Drugs Scripts
// drug2.sqf

_endeZeit = time + 60;

while {time < _endeZeit} do 
	{
	"colorCorrections" ppEffectEnable true;
	"colorCorrections" ppEffectAdjust [1, 1, 0, [0,0,0,0.5], [random 5 - random 5,random 5 - random 5,random 5 - random 5,random 1], [random 5 - random 5,random 5 - random 5,random 5 - random 5, random 1]];  
	"colorCorrections" ppEffectCommit 1;	
	"chromAberration" ppEffectEnable true;
	"chromAberration" ppEffectAdjust [0.01,0.01,true]; 
	"chromAberration" ppEffectCommit 1;

	sleep 3;

	};

I tried to make {while ...} forEach units mpGroup; - does not work.

Script either works for all units, or doesn't work at all. Where I don't catch it?

Share this post


Link to post
Share on other sites

Who's running the script and from where?

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  

×