This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
[U] Player state
Stanislav Vasilev edited this page Feb 21, 2023
·
5 revisions
- Generate a
PlayerState
class using the BuildTool (We are going to call this example's classPS
) - Include its header into a
Game mode
header file - Call the regular make function
- You have a new player state ready to be used
The player state class is the only class with no functionality tied to it, meaning that it only has its necessary events. There are more plans for the GameState
class for updates in the far future, but for now it doesn't serve a purpose other than adding additional events. However, semantically, its usage is for tracking specific states of a player that are not related to the Pawn
or PlayerControler
. Here are some examples:
- K/D ratio
- High score
- Number of items used
- Current party name
You can use the standard cast function for casting from a generic pointer to it's base pointer type
This project is supported by all the people who joined our discord server and became beta testers. If you want to join the discord you can click here
- Home
- Beginner concepts
- Advanced concepts
- Engine developer and contributor resources