FEATURES
Knocking out Players
Multiplayer Support
Revive other players
Loading Screen to revive
Set Reviving Points
Documented Blueprints
and more...
FEATURES
Knocking out Players
Multiplayer Support
Revive other players
Loading Screen to revive
Set Reviving Points
Documented Blueprints
and more...
Revive Component Setup
Enable Enhanced Input Plugin
To use the plugin without any problems, you need to do a few things. Go to the plugins folder and activate Enhanced Input (activated by default). A button labeled Restart Engine will appear in the corner. Press this button to confirm all changes.
Add Component to your Player Character
Go to the character you use as a player and click on “Add Component” at the left center.Search there for "BP_ReviveComponent" and add the component to your player character.
Add Linked Anim Graph To Your Anim Blueprint
To ensure your character plays the knockout state as soon as it gets knocked out, you'll also need the appropriate Anim Graph component. To do this, open your Anim Blueprint and search the graph for “Linked Anim Graph.” Select it, then in the “Instance Class” section of the Details panel, select “ABP_KnockedAnimBP” and connect it to your Animation Blueprint code. This completes the entire setup for the component.
Configuration
In this section, you'll see all the available configurations, which you can change at any time without hesitation. This allows you to adjust settings related to the Reviving or Knockout State and tailor them to your game so that everything is exactly the way you want it.
Revive Radius: In this radius you can getting revived by another player.
TimeToRevive: The length in seconds it needs to get you out of the knockout state.
ReviveAnimation: The animation the reviver player plays when he is reviving someone.
KnockoutDelay: The length it needs until the player dies,
KnockoutSpeed: The walk speed of the player when he is knocked out.
LoadingScreenTime: The length of the time the loading screen is getting displayed.
LoadingScreenWidget: The widget that is getting displayed as loading screen after death.
How to update respawn transform?
Don't want the player to keep starting over at the beginning every time they die, but would rather have them respawn at a checkpoint, for example? Then follow these steps and spawn your character wherever you want!
To respawn your character at a location other than the player start point, you'll need the following function: “Update Respawn Transform.” To call this function, use your reference to the component and call the function from there. The input you specify here will then serve as the new respawn point until you call the function from a different location.