Crashing and in video note

There’s a note at top of video for fix when Unreal crashes, this is code put in and it works…

// Called every frame
void UOpenDoor::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);

// poll the TriggerVolume, 
//if the ActorThatOpens is in the volume, then
if (PressurePlate && PressurePlate->IsOverlappingActor(ActorThatOpens))   
{
	OpenDoor();
}

}

Privacy & Terms