1. Home
  2. Docs
  3. Magio
  4. Tutorials
  5. Nullify/Extinguish Effects with raycast or overlap sphere

Nullify/Extinguish Effects with raycast or overlap sphere

Example 1: You want to extinguish flames with some area effect.

Example 2: You want to remove the plants from some area of your object.

Steps:

  1. Create empty game object
  2. Add Component -> Sphere Nullify
    1. You can also Add Component -> Raycast Nullify in case of weapon fire etc.
  3. Choose affected class (In this tutorial, flame is used to extinguish the flames)
  1. Test it out by moving the sphere to the object you are burning/want to nullify! Remember to have the right affected class!

Tips:

  • You can also make this as a prefab which you instantiate in case of explosion/magic/etc.
  • You can control the cast by disabling “Repeating raycast” and calling SphereNullifyCast() or CastRayCastNullify()
Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *