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