Skip to content

UndeploySound

The sound a structure makes as its deconstruction starts.

Specification
Applies to
BuildingType
File
rules.ini
Section
[<ObjectType ID>]
Value
sound
When omitted
noneThe slot holds whatever [`AuxSound2`](/keys/auxsound2/) put there, and nothing at all when that key is unset too.
rules.ini
[MYUNDEPLOY] ; a BuildingType registered in [BuildingTypes]
UndeploySound=MYUP1 ; a sound ID registered in SOUND.INI

A structure plays this sound at its position when it starts to deconstruct, whether it is being sold or undeployed. It is the first sound of the deconstruction. Any crew evacuation and the SellSound come after it, and then the reverse build-up.

The structure stops every animation running on it as the sound plays. An IsJuggernaut=yes structure first turns its body and barrel back to StartFacing and StartPitch, and plays the sound once it gets there.

Two sell orders stop short of deconstruction and play no UndeploySound:

  • Selling a structure that holds an upgrade plug sells its most recent plug instead.
  • Selling a UnitRepair=yes service depot with an object parked on it sells that object instead.