Versions Compared
compared with
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
function eventObjectRecycled( gameObject ) { // do stuff } |
Parameters
Parameter | Type | Mandatory | Notes | Game version |
---|---|---|---|---|
gameObject | The droid or structure that was recycled. | 3.2+ |
Notes
It's likely that eventDestroyed() will be triggered after this event.
Example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
function eventObjectRecycled( obj ) { playSound( obj.type == DROID ? "pcv428.ogg" : "pcv340.ogg" ); } |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|