This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
functions:isclientonly [2017/06/13 17:26] – created 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(" | ||
- | </ |