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. 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.1497364004.txt.gz ยท Last modified: 2017/06/13 17:26 by korshun