Versions Compared

Key

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

Triggered when a droid is recycled or when a structure is demolished by a truck...

 

Syntax

Code Block
themeRDark
languagejavascript
linenumberstrue
function eventObjectRecycled( gameObject ) {
	// do stuff
}

Parameters

ParameterTypeMandatoryNotesGame version
gameObject

Droid object

Structure object

(tick)The droid or structure that was recycled.3.2+

Notes

It's likely that eventDestroyed() will be triggered after this event.

Example

Code Block
themeRDark
languagejavascript
linenumberstrue
function eventObjectRecycled( obj ) {
	playSound( obj.type == DROID ? "pcv428.ogg" : "pcv340.ogg" );
}
Div
classbox
Availability
Status
colourYellow
title3.2+

Requires:

  • Warzone 3.2 or above
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5