ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:isclientonly

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
functions:isclientonly [2017/06/13 17:26] – created korshunfunctions:isclientonly [2019/08/26 04:23] (current) – removed korshun
Line 1: Line 1:
-====== IsClientOnly ====== 
-{{tag>info}} 
-''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: 
-<code> 
-if (IsClientOnly()) 
-    Error("This function needs to be executed serverside); 
-</code> 
functions/isclientonly.1497364004.txt.gz · Last modified: 2017/06/13 17:26 by korshun