the 2nd and 3rd bindaction are marked as errors which won’t allow me to run code.
//.CPP FILE
#include “RTSSelectAndMove.h”
#include “RTSPlayerController.h”
ARTSPlayerController::ARTSPlayerController()
{
bShowMouseCursor = true;
DefaultMouseCursor = EMouseCursor::Crosshairs;
}
void ARTSPlayerController::BeginPlay()
{
}
void ARTSPlayerController::SetupInputComponent()
{
InputComponent->BindAction(“LeftMouseClick”, IE_Pressed, this, &ARTSPlayerController::SelectionPressed);
InputComponent->BindAction(“LeftMouseClick”, IE_Released, this&ARTSPlayerController::SelectionReleased);
InputComponent->BindAction("RightMouseClick", IE_Released, this &ARTSPlayerController::MoveReleased);
}
void ARTSPlayerController::SelectionPressed()
{
}
void ARTSPlayerController::SelectionReleased()
{
}
void ARTSPlayerController::MoveReleased()
{
}
// .H FILE
#pragma once
#include “CoreMinimal.h”
#include “GameFramework/PlayerController.h”
#include “RTSHud.h”
#include “RTSPlayerController.generated.h”
/**
*
*/
UCLASS()
class RTSSELECTANDMOVE_API ARTSPlayerController : public APlayerController
{
GENERATED_BODY()
public:
ARTSPlayerController();
virtual void BeginPlay() override;
virtual void SetupInputComponent() override;
ARTSHud* HUDPtr;
protected:
void SelectionPressed();
void SelectionReleased();
void MoveReleased();
};