If using 4.26 do not forget to correct TSubclassOf<UCameraShake> HitShake;

As per comment in previous lecture, do not forget to correct the following part of code:

TSubclassOf<UCameraShake>

with:

TSubclassOf<UMatineeCameraShake>

Otherwise you will get the compilation error:
Class ‘UCameraShake’ not found

10 Likes

I want to add an extra information that connected with the context. You need to change the

GetWorld()->GetFirstPlayerController()->ClientPlayCameraShake(DeathShake);

with

GetWorld()->GetFirstPlayerController()->ClientStartCameraShake(DeathShake);

in APawnBase::HandleDestruction() function because of the new API changes in 4.26.

4 Likes

exactly what i was running into. Thanks

Privacy & Terms