This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
functions:isserveronly [2017/06/19 21:08] – [Examples] korshun | functions:isserveronly [2017/07/16 17:14] – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== IsServerOnly ====== | ====== IsServerOnly ====== | ||
- | {{tag> | + | {{tag>zandronum |
'' | '' | ||
===== Description ===== | ===== Description ===== | ||
- | Returns true if the code is executing only serverside, but not clientside. Shorthand for '' | + | Returns true if the code is executing only serverside, but not clientside. |
- | ===== Examples ===== | ||
- | The following code will not trigger the error serverside or in singleplayer: | ||
- | < | ||
- | if (IsServerOnly()) | ||
- | Error(" | ||
- | </ |