$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This event is called when the human player enters cheat mode...

 

Syntax

function eventCheatMode(entered) {
  // do stuff
}

Parameters

ParameterTypeMandatoryDescriptionGame version
entered

Boolean

(tick)

Was cheat mode enabled?

  • true – yes, cheat mode is active
  • false – no, cheat mode was deactivated
3.2

Return value

Warzone does not process the event handler's return value.

Example

eventCheatMode(active) {
	if (active) {
		// cheat more!
	} else {
		// cheat less
	}
}
Availability DEV

Requires:

  • Warzone 3.2 and above
Contents

Jump to:

See also

Related articles:

 

  • No labels