mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user