![]() ![]() ![]() ![]() Is there any other specifics i have to keep in mind when checking that damage must affect an NPC? So far it seems like its only the layer that needs to be set to NPCs? Best Regards But i stil cant seem to damage my NPC's when they have ragdoll manager active. ColliderLayer and ColliderInactiveLayer, I attempted to extend the Case statement to inflict damage in WeaponsBehaviour.cs on an NPC that is on layer 13 = NPC layer, and i added case 25 and case 26 with the same code that was for case Layer is 13 do damage, i also did the same in the FPS Player.cs. i noticed that they do not receive damage now from me anymore, unless i switch the ragdoll manager off, I suspected that this is because the ragdoll manager assigns the bones to a different layer at runtime based on their current state. After i got this system to work successfully with FPS prefab. I recently purchased the "Ragdoll Manager" asset, This allows me to make my hit reactions on the NPC's to be driven by Inverse Kinematics, Scripts controlling the rigidbodies of the bones to imitate the force it has received, So i can get rid of my hit reactions animations and just use this system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |