Hi thanks for your answer.
I have another question.
I don’t know why when clients shoots each other or shoots to server this function returns false but when server shoots to other returns true… Why this happens?
bool ASWeaponInstant::ShouldDealDamage (AActor* TestActor) const
{
if(TestActor)
{
if(GetNetMode() != NM_Client ||
TestActor ->Role == ROLE_Authority ||
TestActor->bTearOff)
{
return true;
}
}
return false;
}