Skip to content

60 — Sell building

Sells every structure whose tag is attached to this trigger, through the ordinary deconstruction.

Editor data
Numeric ID
60
Engine ID
TACTION_SELL_ATTACHED
Editor name
Sell building
Need token
NEED_NONE
Parameters
None
Attachment
object
INI example
[Actions]
<TriggerID>=1,60,0,0,0,0,0,0,

The action checks every structure in the scenario and sells each one that meets all of these, in this order:

  1. It is active.
  2. It has been placed on the map.
  3. It is not in limbo.
  4. It has a tag.
  5. That tag is attached to this trigger.

Each structure sold plays its construction animation in reverse, like a structure the player sells. The sale refunds RefundPercent of the price to a human player’s house and the full price to a computer house.

Three kinds of structure are not removed by the sale:

  • A structure with upgrades installed loses only its most recent upgrade, which is refunded. The structure stays, and each later firing removes one more upgrade before the structure itself is sold.
  • A service depot with an object parked on it sells the object instead, and the depot stays.
  • A structure that names an UndeploysInto= vehicle and meets that page’s conditions, such as a deployed tick tank or a mobile war factory, turns back into the vehicle. Nothing is refunded unless the vehicle cannot be placed.

Two settings that keep other sales from happening do not apply here:

One refusal does apply: a type with no construction artwork cannot be sold by any route, including this one. For such a structure the action does nothing.

A firestorm wall section is the exception. It has no construction artwork either, but the sale takes it off the map at once and refunds nothing. The player can sell a section only while its house’s wall is down; this action sells it even while the wall is raised.

Caveats
  • Every structure in the scenario whose tag is attached to this trigger is sold, not only the structure that sprang it.
  • A structure that is already being sold is skipped, and so is one with a demolition charge counting down on it.