Jump to content
Sign in to follow this  
FoxClubNiner

Converting setFog to remoteExec

Recommended Posts

So I'm pretty close to getting this working. Originally I had:
 

0 setFog [1, .20, 5];

I like this because you can control the height of the fog with the numbers ".20 and 5" but this wont execute on my dedicated server so I changed it to this:
 

[0, 1] remoteExec ["setFog",0];

This works as intended except I don't have those extra numbers to fine tune the fog height. So I tried this:
 

[0, 1, .20, 5] remoteExec ["setFog",0];

But this way disables the fog so something isn't correct. Any ideas how to integrate the additional parameters?

Share this post


Link to post
Share on other sites

Seems like arma doesn't accept 4 arguments when you remoteexecute this (I don't know why).


Try this:

[
  {
      0 setFog [1, .20, 5];
  }
] remoteExecCall ["call", 2];

so this just executes the command on the server itself which should resolve your issue.

  • Like 2

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  

×