Page cover

Instant Kill

The "Restore Health" function is part of the interaction functions family and can be used to manipulate the health data inside the Replicated Health System. By executing this function the health of the corresponding RHS Component will be directly set to 0% leading to the death of this components owner.


Important: Functions included in the interaction family directly manipulate the health data within the Replicated Health System. Since this data is replicated to all other clients in the game, interaction functions must always be called from the server side.

Function Arguments

The "Instant Kill" function takes a single value as an argument. The "Target" argument must be an instance of the RHS Component which you want to restore health in. When accessing the function from the Replicated Health System, the "target" argument will most likely be automatically connected for you.

  • Target (RHS Component)

How to access the function

To access the "Instant Kill" function, you first need to get an instance of the RHS Component in which you want to manipulate the health data. To do this you can use the Get Component by Class node provided by Unreal Engine / Epic Games. This node will return an instance of the RHS component as long as a valid one was found on the target actor. Consider saving the instance as a variable for later use. Now just drag and drop from the component reference and search for the "Instant Kill" function like this:

Last updated