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