ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:isclientonly

Table of Contents

IsClientOnly

bool IsClientOnly()

Description

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

Examples

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

if (IsClientOnly())
    Error("This function needs to be executed serverside");
functions/isclientonly.1497895965.txt.gz ยท Last modified: 2017/06/19 21:12 by korshun