Jump to content
joakim89

Need help troubleshooting "removeCuratorEditableObjects" script for zeus.

Recommended Posts

So my goal is to make zeus blind from Blue players and i have med som progress. However it seems for some reason when i run my script to remove Blue players, the game adds them again.

while {true} do {
    sleep 10;
    {
        if !((side _x) == east) then {
						ZM1 removeCuratorEditableObjects [[_x],true];
			};
    } foreach allUnits + vehicles;
};

I am looking for any suggestions to how i can fix this. Thanks!

Share this post


Link to post
Share on other sites

You are looping and adding objects one-by-one even though the command takes an array and you could just pass an array..

 

while {true} do {
    sleep 10;
    ZM1 removeCuratorEditableObjects [(allUnits + vehicles) select {side _x != east},true];
};

 

If some other script re-adds them, you have to find that script and make it stop that.

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

×