# 10. Sonar

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVDsGRBXgFisq0hO6tTXv%2Fuploads%2FK6V8EmPkJ5oR44t6oMQI%2F22.mp4?alt=media&token=9eed963b-8b1a-48ea-ab65-4b5278705046>" %}

This scene demonstrates the use of the **DRMController** delegates, that allow executing custom code when those events are detected.&#x20;

In this case **DRM Live Object** is generated at regular intervals (for sonar effect) and after adding it to the pool, **DRMController** calls **OnObjectAddedToPool** event, allowing custom script to detect it and play audio and render lightning effect.

{% hint style="info" %}
**DRMController** delegates are explained in the [Delegates](https://amazing-assets.gitbook.io/dynamic-radial-masks/scripts-and-run-time-api/drmcontroller/delegates) chapter.
{% endhint %}
