Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

setTutorialMode(bool)

Sets a number of restrictions appropriate for tutorial if set to true.

...

Overview

Excerpt

Toggles "tutorial mode" in a single-player game.

Or as cybersphinx describes it: "It makes the game annoying. Disables saving, enables toggling the reticule buttons with the above functions."..."

Availability

Warzone 3.1 Beta 1 and above

Syntax

Code Block
themeEclipse
languagejavascript
linenumberstrue
setTutorialMode(active)

Parameters

ParameterTypeMandatoryDescriptionGame version
activeBoolean(tick)

Make tutorial mode active?

  • true – yes
  • false – no
3.1 Beta 1

Return value

ValueTypeDescriptionGame version
undefinedUndefinedThe function always returns undefined3.1 Beta 1

Examples

Code Block
themeEclipse
languagejavascript
titleRemoving a reticule button
linenumberstrue
setTutorialMode(false); // turn off tutorial mode
removeReticuleButton(DESIGN); // has no effect because tutorial mode is switched off
 
setTutorialMode(true); // activate tutorial mode
removeReticuleButton(DESIGN); // Design reticule button is removed successfully

See also