Creating a regenerative health shield
There are many reasons why a designer may want to get the current value of the player's health. One reason might be to increment damage up to a certain point and no more, or to limit the aggression of opponents based on the health of the player. In this lesson we will log the player's health to an Integer and use that as a multiplier to create a regenerative, but temporary shield. There are many ways to build game mechanics around health, including damage to health based on distance, time, or number of hits. The method here is driven by Kismet. Often anything related to player properties is handled in code by a developer rather than in the level by a gamer, and not surprisingly this exception is fairly scene specific, not a generalized method to effect the player all the time. To provision permanent effects on player health, creating a class is better.
Getting ready
Load the scene from the provided content Packt05_Health_Start.UDK and familiarize yourself...