This is an old revision of the document!
bool IsClient()
Returns true if the script is running on a client.
Any running instance of ZDoom that has display and input capabilities is considered as a client.
If the instance is a client, graphics effects (clientside actors and hud) should be enabled for it.
The following are clients:
Using IsClient and IsServer ensures that your mod runs correctly in both singleplayer and multiplayer:
if (IsServer())
{
// Run serverside code.
}
if (IsClient())
{
// Run clientside code.
}