1. Home
  2. Docs
  3. Magio
  4. Tutorials
  5. Detect when your object touches an effect

Detect when your object touches an effect

Example: You want your player to take damage when it touches an object that is burning/has some other magic effect.

Steps:

  1. Implement IInteractWithEffect on your class
  2. Example in Arctibyte/Magio/Core/Scripts/Interact/Examples/SimpleInteractWithEffect
Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published.