Statistics
Statistic name should be all uppercase and should not contain any spaces or special characters.
Statistics are a way to track and display the progress of a player in your game. They can be used to show the player's progress in the game, such as the number of kills, deaths, or other information that is relevant to the game.
Creating new player statistics
-
Go to the EOS Developer Portal (opens in a new tab) and log in with your Epic Games account.
-
Click on the Stats tab on the left side of the screen, under the Game Services section.
- Click on the + New Stat button to create a new statistic. Now, it will ask you to provide a Stat Name and Stat Description.
- Sum: The sum of all the values of the statistic.
- Latest: The latest value of the statistic.
- Max: The maximum value of the statistic.
- Min: The minimum value of the statistic.
- After providing the Stat Name and Stat Description, you can now create the statistic.
Updating player statistics
To update a player's statistic, you can use the Set EIK Stats
node. This node allows you to update the value of a statistic for the local player.
Cannot view the code? Click here (opens in a new tab)
Retrieving player statistics
To retrieve a player's statistic, you can use the Get EIK Stats
node. This node allows you to get the value of a statistic for the local player.
Please note that you can pass a array of statistic names to get multiple statistics at once.
Cannot view the code? Click here (opens in a new tab)