Jump to content
Sign in to follow this  
iceman77

Question about isServer

Recommended Posts

if I have some script;

...
...
...

if (isServer) then {....};

more code...
code...
.....

Okay, so when I use isServer, even though it's in an if then statment, the rest of the script will be run on the server regardless?

Share this post


Link to post
Share on other sites

more code and code will be run in all machine server and clients too.

Share this post


Link to post
Share on other sites

What bardosy said, the if condition only restricts the code in the if condition's scope.

if (condition) then {statement};

With anything inside of {} being the scope.

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  

×