void AXtremeJanitorCharacter::Use() { AUsableActor* Usable = GetUsableInView(); if (Usable) { Usable->OnUsed(this); } }
void AShooterCharacter::Use() { // Only allow on server. If called on client push this request to the server if (Role == ROLE_Authority) { AUsableActor* Usable = GetUsableInView(); if (Usable) { Usable->OnUsed(this); } } else { ServerUse(); } }