OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: nominesine on 23 May 2008, 14:49:07

Title: isServer vs. local server
Post by: nominesine on 23 May 2008, 14:49:07
What does the isServer command do? It seems to be a scripting command replacing the old game logic and !(local server) solution from OFP. Am I right or wrong? is there any difference between the two nethods that I should be aware of?
Title: Re: isServer vs. local server
Post by: Mr.Peanut on 23 May 2008, 16:47:53
No difference.
Title: Re: isServer vs. local server
Post by: laggy on 17 Sep 2008, 09:54:26
Hi there,

I'm actually not so sure that these two commands work the same way.

I always used the old school Local Server (with a GameLogic named Server) and I felt that I had full control, scripting for a Hosted MP Server.

Now I started using the IsServer command instead. All of a sudden many of my publicVariable triggers didn't broadcast the variables to my clients, at least not on a Hosted MP Server.

Is maybe the IsServer command  more directed towards Dedicated Servers and the old Local Server meant for Hosted MP Servers?

Laggy
Title: Re: isServer vs. local server
Post by: Spooner on 17 Sep 2008, 14:09:01
"local server" was a workaround we used before the isServer command was added. It was cumbersome, since it required a game-logic to be created or the code wouldn't work. It is completely obsolete now, since isServer does precisely the same thing.

In SP or on a dedicated or hosted server, isServer is always true. On dedicated clients, isServer is always false.
Title: Re: isServer vs. local server
Post by: laggy on 17 Sep 2008, 16:56:23
Thanks a bunch,

Laggy