AzureAbyss/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h
MH261677 fb981ce2d6 Created Custom FP Character with custom Interact
Created a Temp Character script and gave it functionallity, also gave it the custom keybind E so when pressed it displays a log message so I know it works. Also created a temporary gamemode for merchant level
2022-11-10 11:52:10 +00:00

34 lines
788 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "TempCharacter.generated.h"
UCLASS()
class THE_TWILIGHT_ABYSS_API ATempCharacter : public ACharacter
{
GENERATED_BODY()
public:
// Sets default values for this character's properties
ATempCharacter();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
void ForwardInput(float Axis);
void RightMoveInput(float Axis);
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
void KeyPressed(FKey Interact);
};