Player - Crucial-Experiment/HelloNeighborGamesRemake GitHub Wiki
Player
Main game character is represented by a Character type object called BP_Player. This object is responsible for controlling movement, performing actions, and interacting with elements of the game environment, implementing the basic gameplay mechanics.
Public variables
Model (Enum)— defines the model of the game character. The available values are listed in the section Enums and StructuresCan a player crash to death? (Boolean)— indicates whether a player can die in a fall from a great heightWalk Speed (Float)— the player's movement speed when walkingRun Speed (Float)— the player's movement speed when runningCrouch Speed (Float)— the player's movement speed in crouch mode
Functions
Get Inventory— returns a list of all objects in the player's inventory as an array of objects of typeBP_ObjectGet Item— returns the object that is currently in the player's hands. The type of the returned object isBP_ObjectUpdate Player Mesh— updates the game character model. Takes a value of typePlayerModel_Enum(see section Enums and Structures)Load Save Value— loads the player's settings from the save fileNew Field Of View— updates the Field of View value (viewing angle) to the specified valueSet Field Of View Back— returns the Field of View (viewing angle) to its initial position
Events
Left Mouse Button— player pressed the left mouse buttonRight Mouse Button— player pressed the right mouse buttonUse Keyboard Button— player pressed theEbutton (or another one specified forInputAction Use)Out Trap— player was released from the trap