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