WBP_LPSP_Interface

Introduction

The Interface Widget Blueprint (WBP_LPSP_Interface) is the blueprint in the asset that takes care of holding/presenting all of the player’s HUD.

If you seek to access the WBP_LPSP_Interface, it is conveniently located at the following path: InfimaGames/LowPolyShooterPack/Core/Widgets/WBP_LPSP_Interface.

Functions

Get Text Ammunition Current:

Retrieves the current amount of ammunition the player has in their active weapon.

Get Text Ammunition Total:

Retrieves the total amount of ammunition the player has across all weapons.

Get Text Grenade Count:

Retrieves the number of grenades the player currently has.

Get Text Time Scale:

Retrieves the current time scale or speed of the game.

Update Text Color Ammunition Pool:

Changes the color of the text displaying the player's total ammunition based on certain conditions.

Update Text Color Ammunition Current:

Changes the color of the text displaying the player's current ammunition based on certain conditions.

Get Text Debug Abilities:

Retrieves text information about the player's abilities for debugging purposes.

Get Ammunition Visibility:

Checks whether the ammunition display is currently visible on the HUD.

Get Stamina Bar Percent:

Retrieves the current percentage of the player's stamina bar.

Get Stamina Bar Visibility:

Checks whether the stamina bar is currently visible on the HUD.

Bind Character Health Changed:

Connects the function to be called when the character's health changes.

Private Variables

Character:

This variable represents the player's character within the game. It stores information about the character's current state and attributes.

Actor Weapon:

This variable represents the weapon currently used by the player's character. It holds data about the weapon's type, status, and other relevant properties.

Stamina:

This variable keeps track of the current stamina level of the player's character. Stamina is a measure of the energy that a character has for performing actions in the game.


Last updated

Was this helpful?