# TArray of FHitResoult On Server - distance always return 0

**URL:** <https://forums.unrealengine.com/t/tarray-of-fhitresoult-on-server-distance-always-return-0/340098>\
**Category:** World Creation\
**Tags:** return, tarray, Server, distance, unreal-engine, question\
**Created:** [November 30, 2015, 9:36am UTC](https://forums.unrealengine.com/t/tarray-of-fhitresoult-on-server-distance-always-return-0/340098 "2015-11-30T09:36:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b5c9f6eb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b5c9f6eb](https://forums.unrealengine.com/u/anonymous_user_b5c9f6eb)\
**Post date:** [November 30, 2015, 9:36am UTC](https://forums.unrealengine.com/t/tarray-of-fhitresoult-on-server-distance-always-return-0/340098/1 "2015-11-30T09:36:08Z")

</div>

Hi, I’m working on ShooterGame Project in UE 4.10.

After sending a TArray to a Server function all distances in array get a value of 0. I don’t know if it’s bug or I’m doing something wrong.

GetActor() returns local and on serwer always actor that was hit.

Thanks for answer! 😉

Function On Server (Impact isn’t modified)

```
UFUNCTION(reliable, server, WithValidation)
	void ServerNotifyHit( const TArray<FHitResult>& Impact, FVector_NetQuantizeNormal ShootDir, int32 RandomSeed, float ReticleSpread);

void AShooterWeapon_Instant::ServerNotifyHit_Implementation(const TArray<FHitResult>& Impact, FVector_NetQuantizeNormal ShootDir, int32 RandomSeed, float ReticleSpread)

```

Debug Code:

```
switch (Role)
	{
	case ROLE_Authority:
		roleStr = "Authority";
		break;
	case ROLE_AutonomousProxy:
		roleStr = "AutonomousProxy";
		break;
	case ROLE_SimulatedProxy:
		roleStr = "SimulatedProxy";
		break;
	default:
		roleStr = "Other!";
		break;
	}

	for (int i = 0; i < Impact.Num(); i++)
	{
		GEngine->AddOnScreenDebugMessage(-1, 5.0, FColor::Green, "i=" + FString::FromInt(i) + ", Dystans: " + FString::SanitizeFloat(Impact[i].Distance) + " ROLE: " + roleStr );
	}

```
