ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:isserveronly

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:isserveronly [2017/06/19 21:08] – [Examples] korshunfunctions:isserveronly [2019/08/26 04:24] (current) – removed korshun
Line 1: Line 1:
-====== IsServerOnly ====== 
-{{tag>info}} 
-''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: 
-<code> 
-if (IsServerOnly()) 
-    Error("This function needs to be executed clientside"); 
-</code> 
functions/isserveronly.1497895700.txt.gz · Last modified: 2017/06/19 21:08 by korshun