I'm having trouble finding the problem compiling this in Unreal Engine 4 4.12. Can you tell me the problem of this?
MyActor.cpp
// Fill out your copyright notice in the Description page of Project Settings.
#include "UnrealTutorial.h"
#include "MyActor.h"
// Sets default values
AMyActor::AMyActor()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
void AMyActor::TriggerEnter(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
{
//when player is hit by the rock, teleport them back to start
OtherActor->SetActorLocation(PlayerStartingLocation);
}
MyActor.h
// Fill out your copyright notice in the Description page of Project Settings.