Fixed weapon system information bug
This commit is contained in:
parent
fd41495cc7
commit
37c93fcfe8
@ -79,6 +79,8 @@ void AEndlessVendettaCharacter::WeaponPickUpSystem()
|
||||
FHitResult OutHit;
|
||||
FCollisionQueryParams QueryParams = FCollisionQueryParams::DefaultQueryParam;
|
||||
QueryParams.AddIgnoredActor(this);
|
||||
QueryParams.AddIgnoredActor(PrimaryWeapon);
|
||||
QueryParams.AddIgnoredActor(SecondaryWeapon);
|
||||
FVector LT_Start = FirstPersonCameraComponent->GetComponentLocation();
|
||||
FVector LT_End = LT_Start + (FirstPersonCameraComponent->GetForwardVector() * InteractionRange);
|
||||
if (!GetWorld()->LineTraceSingleByChannel(OutHit, LT_Start, LT_End, ECC_Camera, QueryParams)) return;
|
||||
|
Loading…
Reference in New Issue
Block a user