Unity Tutorial: How to trigger a ragdoll on impact using C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น •

  • @Seestral
    @Seestral 2 ปีที่แล้ว +9

    thanks for the super useful tutorial! Also I've seen people in comments asking for force applying to the object when getting hit so here's my take on it..
    For context, I use a gun on my FPS game, when my gun shoots, the enemy the ragdoll triggers.
    I personally get the transform.forward from my FPS camera to determine where the force should be applied relative to where i'm looking. (Also I have my camera as a child of an empty gameobject to keep track of its position).
    with all that mentioned I simply make a reference to the player camera using - [SerializeField] GameObject playerCam; - (and reference it from inspector)
    then inside EnableRagdoll() into Rigidbody foreach, I simply addforce to the rigidbodies using
    rigid.AddForce(playerCam.transform.forward * 200f, ForceMode.Impulse);
    Of course this function would have to be called into another function when you shoot the enemy so it triggers properly.
    this was my 30 second smart moment so I hope you enjoyed it (even though this is super basic...)

    • @PixelWitch
      @PixelWitch  2 ปีที่แล้ว +3

      cool, I am pinning this so other people can find it, thanks for sharing how to do this!

  • @Bruce.B
    @Bruce.B 3 ปีที่แล้ว +5

    I can't believe I discovered such a genius so late.
    I blame TH-cam. I have been searching for all the right terms for your videos, but they never showed up until today.
    Anyway, I seeing you haven't uploaded for the last 9 months worries me though.
    Please don't stop making these videos. They are just perfect! ♥

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว

      thanks :) I've just been busy with work so stopped for a bit.

  • @Derekstefan
    @Derekstefan 3 หลายเดือนก่อน

    Excellent tutorial. Clear explanation. Despite the video being nearly 16 minutes long, it certainly felt shorter than that. This tutorial was exactly what I was looking for. Thank you.

  • @GlitchVR
    @GlitchVR 3 ปีที่แล้ว +6

    THANK YOU SO MUCH! STRAIGHT TO THE POINT AND FEEL LIKE I'VE ACHIEVED SOMETHING TODAY! THANK YOU!

  • @ayushgupta3994
    @ayushgupta3994 ปีที่แล้ว +2

    this is the exactly i was looking for from whole 5+ days lol
    subbed straight away❤❤

  • @jstra
    @jstra 2 ปีที่แล้ว +2

    I'm pretty new to unity. When you were fleshing out getting the ragdoll parts you said about writing collider then adding [ ] "which means it's an array".
    THANK YOU.
    I've added those from so many tutorials and you are the first person who actually said what they mean.

  • @gamesfordlegend
    @gamesfordlegend ปีที่แล้ว

    i love the way you explained everything at the beginning, nice video

  • @Xzarations
    @Xzarations 3 ปีที่แล้ว +5

    I love the way you do tutorials! Hopefully you decide to do more in the future

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +1

      thank you, I'm working on one now actually :)

    • @Xzarations
      @Xzarations 3 ปีที่แล้ว

      @@PixelWitch Awesome! Can’t wait to see what comes of this channel!

  • @cbuckington2933
    @cbuckington2933 3 ปีที่แล้ว +2

    Hey :) Just wanted to let you know that you have a really fun and charismatic way of explaining things on a rather base level! Great job and wonderful sense of humour :'D

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +1

      Thank you so much! :) this is a very encouraging compliment 😊

  • @znamiyu
    @znamiyu 2 ปีที่แล้ว +1

    Thanks !
    Love the visual explanation, it's really good and on point.

  • @ahmetalkanduran
    @ahmetalkanduran 3 ปีที่แล้ว

    Best Unity tutorial i have ever seen. Pls continue tutorials!

  • @mrpotato8196
    @mrpotato8196 2 ปีที่แล้ว

    This 1 video taught me 2 things-
    1. what the title said
    2. foreach function (I rarely work with arrays so I never really came across it lol)

  • @Enzorojopasion
    @Enzorojopasion ปีที่แล้ว

    This video saved my ver existance, thank you very much queen, you just won yourself a new sub!!!!!
    Keep up the great work!!!!!

  • @janpaweii3115
    @janpaweii3115 2 ปีที่แล้ว +1

    Thank you. Simple and effective. i enjoy following you coding because you have a nice clean structurized way and explaining everything great so its really easy to understand! Not only to follow. Thanks witch :D Greetings from a witcher

  • @teknofis2604
    @teknofis2604 3 ปีที่แล้ว

    I know its a simple topic but it's still is the best explanation I've ever seen about Ragdoll On/Off switch. Definitely an absolute hit for beginners. Pls keep teaching stuff :)
    Edit : Just looked at that simple drawing explanations again and .. You're a very good teacher :)

  • @MatruKrupabhakti
    @MatruKrupabhakti 3 หลายเดือนก่อน

    Thank you So much! Youre are spotOn with the tutorial, and also thankyou for additional tips.

  • @MysteryUnclear
    @MysteryUnclear 2 ปีที่แล้ว

    thank you so much i'see many tutorials but this tutorial helped me a lot keep it up btw love your channel

  • @JaminJelly2
    @JaminJelly2 3 ปีที่แล้ว +2

    Very in depth and very understandable, great job!

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +1

      thank you :) I am never sure when I am under or over explaining things, so I appreciate the feedback.

    • @Mr.IN3V1T4BL3
      @Mr.IN3V1T4BL3 3 ปีที่แล้ว

      @@PixelWitch can u tell how can I stand up after rag doll.

  • @Resul1445
    @Resul1445 2 ปีที่แล้ว

    You have a really good explanation. Thank you for this beautiful tutorial.

  • @liamlee8670
    @liamlee8670 2 ปีที่แล้ว +1

    Only 790 subs??? You are a godly coder, i cannot thank you enough. You dont know how important this is to my specific game.

  • @alexisbaliari
    @alexisbaliari 3 ปีที่แล้ว +1

    Just what I needed. Excellent!

  • @InfernalHedgehog
    @InfernalHedgehog ปีที่แล้ว +1

    This was probably the most useful tutorial I have ever seen. Thank you so much for making it!

  • @MSSMikos
    @MSSMikos 2 ปีที่แล้ว

    Great tutorial! Now you get new subscriber and i will follow your best programming explanation.

  • @THEM0J0MAN
    @THEM0J0MAN ปีที่แล้ว

    Such a good, energetic, succinct tutorial. 👍

  • @Dan_perks
    @Dan_perks 3 ปีที่แล้ว +1

    THANK YOU SOOOO MUCH DEFO 100% deserved th follow the tav helped so much with my ideas THANK YOUUUU

  • @ekekw930
    @ekekw930 10 หลายเดือนก่อน

    At 11:47, how can I make sure those red animation "hint" boxes (not sure what the correct name is) are also moved with the model?

  • @raycoolsen7952
    @raycoolsen7952 3 ปีที่แล้ว +9

    Very helpful tutorial, especially the drawing explaining the difference between the two modes is really cool. You could have simplified the C# script a bit by making only one function RagdollMode(bool enable) and then using the passed bool to switch everything off and on. Another interesting topic could be how to get the figures to stand up again after they have fallen over. Thanks for the explanation!

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว

      Thanks for the suggestion on how to do it better. I did try to make it one function, but I was struggling with how to make the animator turn off first if it's true and last if it's false if I used one function with a bool argument like that. How do you move that one animator.enabled around, based on the input?

  • @ApexPredatorM82
    @ApexPredatorM82 2 ปีที่แล้ว

    Super cool tutorial and your awesome way of teaching love it

  • @foolauto915
    @foolauto915 3 ปีที่แล้ว +1

    that's the best tutorial i've ever seen , very visual and dynamic

  • @Arrzee.
    @Arrzee. ปีที่แล้ว

    PLEASE DO MORE UNITY TUTORIALS! A good one to start with is a How to make an enemy attack using NavMesh tutorial! Many people need help with this ( I need help ) and it would a great tutorial

  • @LePeppino
    @LePeppino ปีที่แล้ว

    That was a fantastic explanation, really fun and easy to follow and working well. Don't sell yourself short, you did a great job!
    edit: oops, spoke too soon.. I have a little problem with the mainCollider of the character: when RagdollModeOn is called and the mainCollider gets disabled, it just stays in place while the rest of the body ragdolls properly, creating this stretchy looking glitch. Am I missing something? The mainCollider is applied to the character model itself, where also the rigidbody and the animator are.

  • @k-6353
    @k-6353 ปีที่แล้ว

    Hi, great tutorial, would love to see you make one for procedurally animated character!

  • @linastreich4468
    @linastreich4468 ปีที่แล้ว +1

    Are you sent from god? Thats exactly what I needed to know, THANK YOU

  • @rufusmassey899
    @rufusmassey899 3 ปีที่แล้ว

    really well made tutorial

  • @MrCrolic
    @MrCrolic ปีที่แล้ว +3

    all code)
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class ragDollOn : MonoBehaviour
    {
    public BoxCollider MainCollider;
    public GameObject thisGuysRig;
    public Animator thisGuysAnimator;
    void Start()
    {
    GetRagdollBits();
    RagdollModeOff();
    }
    void Update()
    {
    if (Input.GetKey(KeyCode.F))
    isOnRagdoll();
    }
    Collider[] RagdollColiders;
    Rigidbody[] LimbsRigitbodies;
    void isOnRagdoll()
    {
    RagdollModeOn();
    }
    void GetRagdollBits()
    {
    RagdollColiders = thisGuysRig.GetComponentsInChildren();
    LimbsRigitbodies = thisGuysRig.GetComponentsInChildren();
    }
    void RagdollModeOn()
    {
    foreach (Collider col in RagdollColiders)
    {
    col.enabled = true;
    }
    foreach (Rigidbody rb in LimbsRigitbodies)
    {
    rb.isKinematic = false;
    }
    thisGuysAnimator.enabled = false;
    MainCollider.enabled = false;
    GetComponent().isKinematic = true;
    }
    void RagdollModeOff()
    {
    foreach (Collider col in RagdollColiders)
    {
    col.enabled = false;
    }
    foreach (Rigidbody rb in LimbsRigitbodies)
    {
    rb.isKinematic = true;
    }
    thisGuysAnimator.enabled = true;
    MainCollider.enabled = true;
    GetComponent().isKinematic = false;
    }
    }

  • @Arrzee.
    @Arrzee. ปีที่แล้ว

    YOU ARE ACUALLY A GIFT SENT FROM HEAVEN, YOU JUST EARNED A NEW SUBSCRIBER! THANK YOU SOOOO MUCH!

  • @ZokageDelaMeme
    @ZokageDelaMeme 11 หลายเดือนก่อน

    A less complex way would be to take in a parameter like so
    public void TurnOn(bool on)
    {
    foreach (var col in Colliders)
    {
    col.enabled = on;
    }
    foreach (var ps in parts)
    {
    ps.isKinematic = !on;
    }
    animator.enabled = !on;
    }

    • @ZokageDelaMeme
      @ZokageDelaMeme 11 หลายเดือนก่อน

      Also
      public void TurnOn(bool on, Vector3 force)
      {
      foreach (var col in Colliders)
      {
      col.enabled = on;
      }
      foreach (var ps in parts)
      {
      ps.isKinematic = !on;
      }
      if (on)
      {
      force.y = 15;
      parts[0].velocity= force;
      }
      animator.enabled = !on;
      }
      allows you to not only turn it on but add some "kick back"

  • @MrHughlio912
    @MrHughlio912 9 หลายเดือนก่อน

    very straight forward, thanks for the help! by the way what's that groovy song playing at the end?

  • @SawyerTheHedgehog
    @SawyerTheHedgehog 8 หลายเดือนก่อน +1

    Can i have the script please? I'm working on a Sonic fangame called: Sonic the Hedgehog Blast/Sonic Hijinks/Sonic Test.

  • @cfactorygames
    @cfactorygames 3 ปีที่แล้ว +1

    Here when i deactivate RigidBody, CapsuleCollider and Animator the actor jumps like a explosion impact

  • @mrgonuts
    @mrgonuts 3 ปีที่แล้ว

    thank you so much for your great tutorial you did a great job of explaining it

  • @Eternal_Night17
    @Eternal_Night17 10 หลายเดือนก่อน

    Hi, if my Character has a script which follows the player and if I shoot a bullet at him he turn in to a ragdoll, but how to disable the script after he turned in to a ragdoll?

  • @Jaydenbb5
    @Jaydenbb5 ปีที่แล้ว

    I know this video is old by internet standards but if you still read comments on this I could really use some help. I added this code to the starter assets 3rd person controller prefab, and it uses a character controller in the player armature section, which means that when the script tries to access the rigidbodies, it does so on the player armature and gets stuck because there isn't one there. I thought it would be a good idea to just add a rigidbody to it, and while it fixed that problem, it now makes the player spin clockwise uncontrollably. If you know how to fix this then I would really appreciate it

  • @necatron73
    @necatron73 ปีที่แล้ว

    I'm guessing u can use this in conjunction with a simple a.i follower script.

  • @mhze
    @mhze 2 ปีที่แล้ว

    Brackeys tutorials but better! Thank you!

  • @zezooalzezoo5200
    @zezooalzezoo5200 3 ปีที่แล้ว

    Great explanation , thanks

  • @flipthebird6355
    @flipthebird6355 2 ปีที่แล้ว

    It's 5am, I started trying to make a working ragdoll at 12, I hate physics so much

  • @ACR995
    @ACR995 2 ปีที่แล้ว

    It’s only working for me if the object colliding with the rag doll has a rigid body on it

  • @glowy6289
    @glowy6289 2 ปีที่แล้ว +1

    at Void start when i typed in RagdollModeOff it says it doesnt exist in that context, why?

    • @PixelWitch
      @PixelWitch  2 ปีที่แล้ว

      hmm, not sure, did you put the (); at the end? maybe it thinks you are are trying to use a variable that doesnt exist instead of a method. the (); tells it its a method

    • @glowy6289
      @glowy6289 2 ปีที่แล้ว

      @@PixelWitch I have a () at the end

  • @pedropc5824
    @pedropc5824 3 ปีที่แล้ว

    Very well explained

  • @foxfire941
    @foxfire941 3 ปีที่แล้ว

    Хороший урок. Но у меня накопилось несколько вопросов:
    1). Можно ли использовать много коллайдеров для этого скрипта(много, потому что на каждой части тела они будут расположены)?
    2). Если персонаж после такого падает, как тогда реализовать его подъём и ПЛАВНОЕ переключение с функции Ragdoll на Animator?
    3). Как реализовать сопротивление персонажа другому предмету?
    4). Как настроить скрипт под силу удара о коллайдер?
    А в целом всё замечательно.

    • @Kooczsi
      @Kooczsi ปีที่แล้ว

      same dude

  • @equiaux
    @equiaux ปีที่แล้ว

    Easy to understand Thanks a lot!

  • @korypostma
    @korypostma ปีที่แล้ว

    At 4:05, I prefer my ragdolls to be rad!

  • @tolgahangulsoy3273
    @tolgahangulsoy3273 3 ปีที่แล้ว +1

    You are amazing :) Thank you so much. Very hopefull.

  • @gamedevSkuf
    @gamedevSkuf 2 ปีที่แล้ว

    Nice tutorial! Thank a lot

  • @Arrzee.
    @Arrzee. 9 หลายเดือนก่อน

    ⚠️How do I do this but with a ray cast weapon⚠️

  • @GlitchVR
    @GlitchVR 3 ปีที่แล้ว

    thank you thank you thank you!

  • @manutm4uu
    @manutm4uu 2 ปีที่แล้ว

    Is it possible to send the ragdoll flying by adding force?

  • @NordicGamesLab
    @NordicGamesLab 3 ปีที่แล้ว

    Thank you, really helpful

  • @d0c_dev
    @d0c_dev 3 ปีที่แล้ว

    thank you!!, now i just have to figure out how make the nav mesh agent stop sliding when the they bump into each other

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว

      you can add a line to the ragdollModeOn method that turns off the nav mesh, I think it's a bool like navmesh.isStopped = true; if I remember right.

  • @486x
    @486x 3 ปีที่แล้ว

    hei do you know how to change character move speed via c# made with game creator?

  • @RidersUnite_
    @RidersUnite_ 3 ปีที่แล้ว

    I Get: error CS1520: Merhod must have a return type

  • @GlitchVR
    @GlitchVR 3 ปีที่แล้ว +7

    Can you please next show how to apply a force! So when they get hit they go flying! :D

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +4

      I had a bit of trouble getting them to react to force too so I don't really know the answer yet. there are some forces you can add but I dont know how to use them well yet, I would recommend experimenting with collision.impulse docs.unity3d.com/ScriptReference/Collision-impulse.html
      or forceMode.impulse docs.unity3d.com/ScriptReference/ForceMode.Impulse.html
      Good luck :)

    • @geliyorum0673
      @geliyorum0673 3 ปีที่แล้ว +2

      Try this after assigning a RigidBody:
      ToggleRagdoll(true);
      foreach(Rigidbody rb in ragdollBodies)
      {
      rb.AddExplosionForce(5f, transform.position, 5f, 1f, ForceMode.Impulse);
      }

    • @FarraBotiLoL
      @FarraBotiLoL 3 ปีที่แล้ว +2

      void SetVelocity(Rigidbody rig)
      {
      Vector3 Vrig = rig.velocity;
      //Modify each axis
      Vrig.x = 0f;
      Vrig.y = 5f;
      Vrig.z = 0f;
      rig.velocity = Vrig;
      }
      Call this function inside the RagDollOn() -> foreach(rigidbody)

    • @GlitchVR
      @GlitchVR 3 ปีที่แล้ว +1

      @@FarraBotiLoL thank you!

  • @ehsanakrami4365
    @ehsanakrami4365 3 ปีที่แล้ว

    Awesome tutorial thanks
    i want to simulate bullet force in character part like head or hand
    how can i disable animation for selection part(Hand) and make rogdoll work selection part?
    can Combine rogdoll physic and animation Togader 50-50?

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +2

      I'm not sure if that's possible, you could try using layer masks to isolate your animation to different parts, and then maybe switch the layers off (turn down their weight) using code--but I don't know for sure if it would work, that's just what I would try.

  • @Mrt-yj4tg
    @Mrt-yj4tg ปีที่แล้ว

    I think I am in love

  • @MrCher666
    @MrCher666 ปีที่แล้ว

    U are well done, thanks❤

  • @bluekadue
    @bluekadue 2 ปีที่แล้ว

    hey could you share the script please . im bad at scripting and always make errors

  • @alfalabs8449
    @alfalabs8449 3 ปีที่แล้ว

    Awesome, what about untriggering it then?

  • @FC12CGaming
    @FC12CGaming 3 ปีที่แล้ว

    why isn't the collision working

  • @Boxply
    @Boxply 3 ปีที่แล้ว

    You're amazing!

  • @abhilashh3904
    @abhilashh3904 3 ปีที่แล้ว +1

    your voice is awesome

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +2

      thank you :)

    • @abhilashh3904
      @abhilashh3904 3 ปีที่แล้ว

      @@PixelWitch i just keep listening to your voice, style.of speaking :) ❤️

  • @Stonk26
    @Stonk26 10 หลายเดือนก่อน

    how do we do it in sfm...

  • @Dehakuzo
    @Dehakuzo 3 ปีที่แล้ว

    Hol' up, You can't tease us with exploding skeletons like that. Any good sources for gibbing models like the final 10 seconds?
    Edit: Played around a bit, I found removing character joints achieves the effect mechanically, but the model stretches. Is the skeleton naturally split, or is there some method to achieve seperation?

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +1

      all I did to make the skeleton able to break was set the break tolerance of the joints very low, so they break easily. since he was already a skeleton, his model's bones break away nicely-- to make a fleshy boi do this, you would need a version of his model with the limbs separated into jibs, that you could swap to. I mean, the joints would still break for the fleshy boy, but he would just sort of stretch and distort oddly instead of falling apart if his model doesn't have separated pieces. like his bones would sort of stretch him as they tumble apart.

    • @Dehakuzo
      @Dehakuzo 3 ปีที่แล้ว

      @@PixelWitch Oooh, I love the break away tip, thanks for the info on separation.

  • @bigsmoke8344
    @bigsmoke8344 2 ปีที่แล้ว

    1:02 That's a rigidbody trust me😂😂😂

  • @EronTristan
    @EronTristan 2 ปีที่แล้ว

    how do i do the collider thing with my raycast bullets

    • @PixelWitch
      @PixelWitch  2 ปีที่แล้ว

      Here's how I'm guessing that would go: you'd have the script that's on the gun (or whatever) that does the ray stuff, and then another script on the character that does the ragdoll, and these two scripts need to talk to each other.
      if you've not done that before, its pretty easy. You can "get component" on a game object to access it's script, and then you can call functions in that script. the general template for this is:
      GetComponent().FunctionName();
      so in your gun script it would have a bit like:
      the ray detects that it hit the character, lets store that character game object in a variable called "character". then
      character.GetComponent().RagdollModeOn().
      if the ray is hitting and returning other things, like it hits the floor or the wall, which don't have a ragdoll script on them, it might cause an error. so you might need to add a tag or if statement or something that first checks if it's the character before it tries to get the script. hope that makes sense :)

    • @EronTristan
      @EronTristan 2 ปีที่แล้ว

      @@PixelWitch Ok thank you

  • @Mikelica69
    @Mikelica69 2 ปีที่แล้ว

    Great video wow!

  • @harddev9181
    @harddev9181 7 หลายเดือนก่อน

    can i get that scout model plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

  • @lazikbro12
    @lazikbro12 ปีที่แล้ว

    nope it only works like that when it starts in turns into a ragdoll

  • @Bat_pann
    @Bat_pann 3 ปีที่แล้ว

    Thanks Very Helpful .

  • @zsolesz48g96
    @zsolesz48g96 3 ปีที่แล้ว +1

    PLS make sfm tutorial i really like to see (i like your vids btw)

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +1

      Thanks! if you just want SFM specific technical tips, I recommend this channel, he's done like a million tutorials th-cam.com/users/JimerXLins
      I don't have any SFM specific tricks to teach, BUT, if you just want me to talk about animation tips in general (that would apply to any software), I could do that :)

    • @zsolesz48g96
      @zsolesz48g96 3 ปีที่แล้ว

      @@PixelWitchsorry for late responding but it would be a really good idea ;)

  • @ikkyino
    @ikkyino 2 ปีที่แล้ว

    +10 tutorial.

  • @FiyasCO.
    @FiyasCO. 2 ปีที่แล้ว

    THANK YOU SO MUCH

  • @hifgghhgg2914
    @hifgghhgg2914 3 ปีที่แล้ว

    Tnx this tutorial help me alot

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว

      glad to hear it!

  • @AHEK8
    @AHEK8 9 หลายเดือนก่อน

    Go just make your ragdoll character separate and instantiate on ragdoll 😊

  • @MaxDolotboy
    @MaxDolotboy ปีที่แล้ว

    Source code ?

  • @Mr.IN3V1T4BL3
    @Mr.IN3V1T4BL3 3 ปีที่แล้ว

    How can I activate rag doll on any object collide

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +1

      You can use the "onCollisionEnter" method that I did, but skip the If statement inside it where it checks for a tag. That way, it will just trigger on any collision.

    • @Mr.IN3V1T4BL3
      @Mr.IN3V1T4BL3 3 ปีที่แล้ว +2

      Thank you so much

    • @Mr.IN3V1T4BL3
      @Mr.IN3V1T4BL3 3 ปีที่แล้ว +1

      @@PixelWitch can u tell how can I stand up after ragdoll

    • @PixelWitch
      @PixelWitch  3 ปีที่แล้ว +1

      @@Mr.IN3V1T4BL3 its pretty easy :) , just put RagdollModeOff(); in whatever part of your code you want to trigger it. so for example, if you just want them to unragdoll after a certain time has passed, you could put that in a coroutine (that's basically a timer if you haven't used coroutines yet).
      if you just want to test it out, you could just make yourself a public bool. Then you can just tick the tick box it makes on the script to trigger it, like this:
      public bool reset;
      void Update()
      {
      if (reset)
      {
      RagdollModeOff();
      }
      }

    • @Mr.IN3V1T4BL3
      @Mr.IN3V1T4BL3 3 ปีที่แล้ว +2

      @@PixelWitch Thank you so much again

  • @Hekayt_Hekma
    @Hekayt_Hekma ปีที่แล้ว

    you r amazing♥♥♥

  • @zezooalzezoo5200
    @zezooalzezoo5200 3 ปีที่แล้ว +1

    But next time try to make some variables private, and call them on Awake 👍

  • @ultmatepotato
    @ultmatepotato ปีที่แล้ว

    poor scout lmao

  • @UsmanAli-eg2sl
    @UsmanAli-eg2sl 2 ปีที่แล้ว

    chu chu chu chu at 3:23 . Thanks me late

  • @penghasiluangdirumah8386
    @penghasiluangdirumah8386 3 ปีที่แล้ว

    bro share you c#

  • @PenginWG3254
    @PenginWG3254 3 ปีที่แล้ว +1

    thx

  • @Mr.IN3V1T4BL3
    @Mr.IN3V1T4BL3 3 ปีที่แล้ว +1

    Super asmr

  • @tyrussell3516
    @tyrussell3516 3 ปีที่แล้ว

    thank you sm!

  • @imgenuinelynotgreat
    @imgenuinelynotgreat 2 ปีที่แล้ว

    scout!!!

  • @renman3000
    @renman3000 ปีที่แล้ว

    DOPE

  • @miaan9374
    @miaan9374 2 ปีที่แล้ว

    Thank you beautiful

  • @barbarusonline
    @barbarusonline ปีที่แล้ว

    hey kinda like the style of explaination with all the drawing stuff. Good for stupid people like me

  • @HatGuy294
    @HatGuy294 10 หลายเดือนก่อน

    scoot tf2

  • @knowingph5802
    @knowingph5802 3 ปีที่แล้ว

    cute voice i love it