> For the complete documentation index, see [llms.txt](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/getting-started/included-demo-scenes/explosion-damage-demo.md).

# Explosion Damage Demo

## Explosion Damage Demo

The Explosion Damage Demo shows AI being damaged by an explosion that happens 1.75 seconds after starting the scene. The damage and explosion force is mitigated depending on the distance AI are away from the source of the explosion. Users can remove the line: *Invoke(nameof(Explode), 1.75f);* within the DamageAIByExplosion script so it can be called through custom code, if desired.

<figure><img src="/files/AgS7As8HryohIRbu6e6z" alt=""><figcaption></figcaption></figure>
