ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:isserveronly

This is an old revision of the document!


Table of Contents

IsServerOnly

bool IsServerOnly()

Description

Returns true if the code is executing only serverside, but not clientside. Shorthand for IsServer() && !IsClient().

Examples

The following code will not trigger the error serverside or in singleplayer:

if (IsServerOnly())
    Error("This function needs to be executed clientside");
functions/isserveronly.1497895700.txt.gz ยท Last modified: 2017/06/19 21:08 by korshun