OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started 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?
-
No difference.
-
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
-
"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.
-
Thanks a bunch,
Laggy