
Risk of Rain 2
You are viewing a potentially older version of this package. View Latest Version

Run AddCustomRevive(CanReviveDelegate canReviveDelegate, OnReviveDelegate onReviveDelegate) method.
In the first parameter put boolean method/delegate that will determine if CharacterMaster is able to respawn on death with your custom condition.
In the second parameter put void method/delegate that will run after death and if CharacterMaster is able to respawn with your custom condition. Run characterMaster.Respawn(Vector3 footPosition, Quaternion rotation, bool wasRevivedMidStage = false) to respawn in your onRevive method/delegate.
Respawn ON REVIVE INSTANTLY. DELAY IT AFTER ONE OR TWO SECONDS