User Tools

Site Tools


prpl:iseditmode

This is an old revision of the document!


<- PRPL reference <- Everything Else 2

IsEditMode

ArgumentsResultNotation
Editor? [ - bool ]

Description

Return whether the script is running in the editor or not.

Examples

IsEditMode if #Don't waste time during play
    "Debugging code" Trace
endif

IsEditMode if #Don't allow editing code to be used in-game (for utility scripts)
    "Mapmaking code" Trace
endif

IsEditMode not if #Don't sit under the mouse as might happen in-game.
    Self GetMousePosition SetUnitPixelCoords Trace
endif
prpl/iseditmode.1498895980.txt.gz · Last modified: 2025/02/14 14:56 (external edit)