Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
36 results for player
Pure node. PlayerIndex 0 = first local player. Returns Character, cast to your BP class to access variables.
GetPlayerCharacterUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoUGameplayStatics::GetPlayerController. Index 0 for single player.
Get Player ControllerUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPure node. Call on PlayerController or Pawn. Cast to your BP_PlayerState subclass.
GetPlayerStateUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoGetPlayerControllerUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoUGameplayStatics::GetPlayerCharacter.
Get Player CharacterUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoCall on GameMode. The controller's StartSpot or nearest PlayerStart is used.
RestartPlayerUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: GetPlayerController → GetPlayerViewPoint(outputs Location,Rotation) → GetForwardVector(Rotation) → Multiply_VectorFloat(A=Forward, B=TraceDistance) → Add_VectorVector(A=CameraLocation, B=Offset) → LineTraceByChannel(Start=CameraLocation, End=TraceEnd). GetPlayerViewPoint exec in='execute', exec out='then', outputs: 'Location' (Vector) and 'Rotation' (Rotator).
Get subsystem: GetSubsystem(UEnhancedInputLocalPlayerSubsystem, GetPlayerController(0)). Call in EventBeginPlay on the Character or PlayerController. Priority: higher number overrides lower number mappings.
AddMappingContextUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoSAVE pattern: EventBeginPlay or custom → CreateSaveGameObject(SaveGameClass=BP_SaveGame) → CastTo<BP_SaveGame> → Set all variables on cast result → SaveGameToSlot(SaveGameObject=cast result, SlotName='SaveSlot1', UserIndex=0). LOAD pattern: DoesSaveGameExist(SlotName='SaveSlot1', UserIndex=0) → Branch → True → LoadGameFromSlot(SlotName='SaveSlot1', UserIndex=0) → IsValid → Is Valid → CastTo<BP_SaveGame> → read variables. Key pins: SaveGameToSlot inputs 'SaveGameObject' (SaveGame), 'SlotName' (string), 'UserIndex' (int). LoadGameFromSlot inputs 'SlotName' (string), 'UserIndex' (int), output 'ReturnValue' (SaveGame).
Get Player PawnUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago