(info) Other great resources: Official JS API docs, Scripting Forum

eventCheatMode()

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:

Â