Explosive Items

From Space Engineers Wiki
Jump to navigation Jump to search

Items can explode in some circumstances:

Inside Cargo

Whenever a block is destroyed and it had items in its inventory, depending on what those items are it can spawn an actual explosion.

Items that contribute to the explosion:

  • Component type with the Explosives SubtypeId.
  • All AmmoMagazine types.

A Temporary Container with those items will also cause an explosion when destroyed, but only from these damage types:

  • Fire - not used by vanilla code.
  • Rocket - direct impact from missile-type ammo.
  • Bullet - used by all projectile-type ammo.
  • Thruster - used by all thrusters' flame damage.
  • Explosion - used by all explosions.

All of these can also be used by mods to deal damage in whatever contexts they want.

The explosion

More details: Explosions

Floating item

Loose items being damaged will also explode:

  • Items with Explosives SubtypeId, except for Ore and Ingot types.
  • All AmmoMagazine types.

The explosion

  • Hardcoded 800 damage
  • Range is calculated from the amount of items divided by 100, capped between 0.5m and 100m.
  • Uses Explosion_Warhead_15 particle effect
  • Uses item's <DestroySound> for the sound effect.

More details: Explosions