can kick other players but there is a problem

Recovering from ragdoll has problems & host can't kick others for some
reason
This commit is contained in:
Melbyj1125
2022-03-02 15:08:49 -06:00
parent 141c2f3d32
commit 71d7a84725
3 changed files with 18 additions and 75 deletions

View File

@@ -116,7 +116,7 @@ public class OffenseStateManager : NetworkBehaviour
if(collision.transform.CompareTag("ArcherTarget") && myCollider == legHitbox.GetComponent<Collider>()){
Vector3 direction = this.transform.forward;
ulong netObjID = collision.gameObject.GetComponent<NetworkObject>().NetworkObjectId;
ulong netObjID = collision.gameObject.transform.root.GetComponent<NetworkObject>().NetworkObjectId;
ApplyKickServerRPC(direction, netObjID);
}