User Tools

Site Tools


prpl:iseditmode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
prpl:iseditmode [2017/07/01 07:59] – Content GoodMorningprpl:iseditmode [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]+<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#map_mission|Map/Mission]]
  
 =====  IsEditMode  ===== =====  IsEditMode  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | Editor? | [ - bool ] |+none True/False | [ - b1 ] |
  
  
 === Description === === Description ===
-Return whether the script is running in the editor or not.+Returns 1 if this script is running on a map open in the level editor, 0 otherwise. This is useful for enabling/disabling functionality while editing a map, such as a PRPL tool for creating particles directly in the editor.
  
 === Examples === === Examples ===
prpl/iseditmode.1498895980.txt.gz · Last modified: 2025/02/14 14:56 (external edit)