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

Both sides previous revisionPrevious revision
Next revision
Previous revision
functions:isclientonly [2017/06/19 21:12] 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. **Returns false in singleplayer, unlike [[IsClient]].** 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.1497895965.txt.gz · Last modified: 2017/06/19 21:12 by korshun