Hi guys. I have a code:
if(CanStand())
{
if (bWallRunning)
{
LaunchCharacter(FindLaunchVeloctiy(), false, true);
EndWallRun();
}
else if(Cast<ABounceProjectile>(GetCharacterMovement()->CurrentFloor.HitResult.GetComponent()->GetOwner()))
{
LaunchCharacter(FVector(0, 0, 1) * GetCharacterMovement()->JumpZVelocity * 5, false, true);
}
else
{
ACharacter::Jump();
}
}
it doesn’t show any error but when i tried compiling there is a error:
[1/1] Compile RunAndRunCharacter.cpp
C:\Users\kaana\OneDrive\Belgeler\Unreal Projects\RunAndRun\Source\RunAndRun\RunAndRunCharacter.h(133): warning C4263: ‘void ARunAndRunCharacter::Crouch(const FInputActionValue &)’: ?ye i?lev hi?bir taban s?n?f? sanal ?ye i?levini ge?ersiz k?lm?yor
C:\Users\kaana\OneDrive\Belgeler\Unreal Projects\RunAndRun\Source\RunAndRun\RunAndRunCharacter.h(231): warning C4264: ‘void ACharacter::Crouch(bool)’: ‘ACharacter’ taban?ndaki sanal ?ye i?lev i?in kullan?labilecek ge?ersiz k?lma yok; i?lev gizlendi
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Engine\Classes\GameFramework\Character.h(799): note: ‘ACharacter::Crouch’ bildirimine bak?n
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Engine\Classes\GameFramework\Character.h(222): note: ‘ACharacter’ bildirimine bak?n
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Templates\PointerIsConvertibleFromTo.h(19): error C2027: tan?ms?z ‘ABounceProjectile’ t?r? kullan?ld?
C:\Users\kaana\OneDrive\Belgeler\Unreal Projects\RunAndRun\Source\RunAndRun\BounceGun.h(9): note: ‘ABounceProjectile’ bildirimine bak?n
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Templates\PointerIsConvertibleFromTo.h(60): note: derlenen s?n?f ?ablon ?rne?i olu?turma ‘UE::Core::Private::PointerIsConvertibleFromTo::TImpl<From,To,ABounceProjectile,UObject>’ ba?vurusuna bak?n
with
[
From=ABounceProjectile,
To=volatile const UObject
]
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Templates\Casts.h(109): note: derlenen s?n?f ?ablon ?rne?i olu?turma ‘TPointerIsConvertibleFromTo<T,volatile const UObject>’ ba?vurusuna bak?n
with
[
T=ABounceProjectile
]
C:\Users\kaana\OneDrive\Belgeler\Unreal Projects\RunAndRun\Source\RunAndRun\RunAndRunCharacter.cpp(339): note: derlenen ?ablon i?levi ‘To *Cast<ABounceProjectile,AActor>(From *)’ ?rne?i olu?turma ba?vurusuna bak?n
with
[
To=ABounceProjectile,
From=AActor
]
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Templates\PointerIsConvertibleFromTo.h(19): error C2338: static_assert failed: ‘TPointerIsConvertibleFromTo must not be instantiated with incomplete types’
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Templates\Casts.h(109): error C2976: ‘TIsIInterface’: ?ok az say?da ?ablon ba??ms?z de?i?keni var
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Templates\Casts.h(56): note: ‘TIsIInterface’ bildirimine bak?n
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Templates\Casts.h(127): error C2976: ‘TGetCastType’: ?ok az say?da ?ablon ba??ms?z de?i?keni var
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Templates\Casts.h(111): note: ‘TGetCastType’ bildirimine bak?n
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Templates\Casts.h(298): error C2976: ‘TCastImpl’: ?ok az say?da ?ablon ba??ms?z de?i?keni var
C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Templates\Casts.h(129): note: ‘TCastImpl’ bildirimine bak?n
Any help will be appreciated