ControllerAIHumanoid.RpcDie C# (CSharp) Method

RpcDie() private method

private RpcDie ( Vector3 force ) : void
force Vector3
return void
    internal void RpcDie(Vector3 force)
    {
        GameObject ragdoll = Instantiate(Ragdoll, this.transform.position, this.transform.rotation) as GameObject;
        SetTransformRagdoll(ragdoll);
        Instantiate(WeaponRagdoll, weaponLocator.position, weaponLocator.rotation);
        ragdoll.GetComponentsInChildren<Rigidbody>().ToList().ForEach(r => r.AddForce(force, ForceMode.VelocityChange));
        this.gameObject.SetActive(false);
    }
    [ClientRpc]