|
Post by tanoshimi2000 on Jul 13, 2023 9:56:26 GMT
So I need to force my player to move as if they've been hit by a car, but no matter what I do, the force is not being applied. I've tried EnableRigidbody() first and that just freezes the character in a Fall position. All of the different types of force, including AddExplosiveForce, even at ridiculously high numbers, do not move my player at all.
Do I need to disable the ThirdPerconController first? I'll try that soon as I can, but is there a secret to blowing up a character?
|
|
|
Post by axbaby123 on Jul 14, 2023 20:53:25 GMT
ragdoll?
|
|
|
Post by tanoshimi2000 on Jul 15, 2023 21:54:32 GMT
I tried EnableRagdoll, but it doesn't work. I also tried grabbing the ragdoll controller and calling ActivateRagdoll and that doesn't work. While running the game, if I click on the Activate Ragdoll button in the debug panel of the Ragdoll script, it does ragdoll the character, but nothing I do in code can reproduce this.
|
|
|
Post by axbaby123 on Jul 16, 2023 9:49:44 GMT
I assume if you use Invector's ragdoll system being hit by a car should give you the effect you need, I think there is no need to script ragdoll if Invector's ragdoll components and your character are setup for it. Enemy car tag and collider collides with Player tag and collider , car weapon tag. ragdoll tag?
|
|