Other great resources: Official JS API docs, Scripting Forum

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

« Previous Version 3 Current »

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

 

Syntax

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

function eventObjectRecycled( obj ) {
	playSound( obj.type == DROID ? "pcv428.ogg" : "pcv340.ogg" );
}
Availability 3.2+

Requires:

  • Warzone 3.2 or above
Contents

Jump to:

 

  • No labels