1. Home
  2. Docs
  3. Ignis
  4. Tutorials
  5. Trigger event from the flammation

Trigger event from the flammation

Example Use Case: Explode a barrel after it has burned for some time.

Example in Demo Scene: TutorialObjects -> DropCube has this script which ignites “TriggeredByDropCube” object even when the flames do not touch.

  1. You can trigger any function with delay from the moment of flammation of an object.
  2. Add Flame Trigger Callback component to your gameobject which has Flammable Object component.
  1. Add callback functions that you want to be called after the delay
    1. So if you would want the barrel to explode after burning for 5 seconds: Delay->5.
    2. See https://docs.unity3d.com/Manual/UnityEvents.html for more information on how to use UnityEvents.
Was this article helpful to you? Yes No

Leave a Reply

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