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:12] – korshun | functions:isclientonly [2017/07/16 17:14] – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== IsClientOnly ====== | ====== IsClientOnly ====== | ||
- | {{tag> | + | {{tag>zandronum |
'' | '' | ||
Line 6: | Line 6: | ||
Returns true if the code is executing only clientside, but not serverside. **Returns false in singleplayer, | Returns true if the code is executing only clientside, but not serverside. **Returns false in singleplayer, | ||
- | ===== Examples ===== | ||
- | The following code will not trigger the error clientside or in singleplayer: | ||
- | < | ||
- | if (IsClientOnly()) | ||
- | Error(" | ||
- | </ |