DestructableRestoreLife
- Parameters
d destructableThe destructable to resurrect. If it is not dead, there will be no effect.
life realThe 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 booleanIf true, the destructable will play its birth animation upon resurrection.
- comment
Resurrects a destructable with the specified hit points.
- patch
1.00
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
native DestructableRestoreLife takes destructable d, real life, boolean birth returns nothing