Function DestructableRestoreLife

  • Resurrects a destructable with the specified hit points.

    Parameters

    • d: Destructable<DestructableEventMap>

      The destructable to resurrect. If it is not dead, there will be no effect.

    • life: number

      The amount of hit points the destructable will have when it is resurrected. A value of 0, or any value above the destructable's maximum HP, will give the destructable its maximum HP (as defined in the object editor). Any value below 0.5 will give the destructable 0.5 hit points.

    • birth: boolean

      If true, the destructable will play its birth animation upon resurrection.

    Returns void

Generated using TypeDoc