This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:iseditmode [2016/12/02 23:33] – external edit 127.0.0.1 | prpl:iseditmode [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <- [[.: | + | <- [[.: |
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | none | True/ |
| === Description === | === Description === | ||
| + | Returns 1 if this script is running on a map open in the level editor, 0 otherwise. This is useful for enabling/ | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | + | IsEditMode if #Don't waste time during play | |
| - | </code> | + | " |
| + | endif | ||
| + | IsEditMode if #Don't allow editing code to be used in-game (for utility scripts) | ||
| + | " | ||
| + | endif | ||
| + | |||
| + | IsEditMode not if #Don't sit under the mouse as might happen in-game. | ||
| + | Self GetMousePosition SetUnitPixelCoords Trace | ||
| + | endif | ||
| + | </ | ||