|
Post by kiwi2112 on Aug 5, 2018 16:25:37 GMT
Working on a decapitation system for the shooter melee template (currently using Unity 5.5)
I'm using the break script from this glass shatter addon I found (credit goes to the creator) I set the head as its own separate object and attach the script to it.
So far it works but errors iv'e been running into:
The enemies head can be destroyed by shooting anywhere (the script works on collision) raising the magnitude works but it either causes no decapitation or it randomly decides.
Particle effects/ broken prefab doesn't stay spawned out of the enemies neck hole, it floats where it was created.
I can post a test project to download if anyone is interested.
|
|
|
Post by spf on Aug 9, 2018 14:53:19 GMT
Working on a decapitation system for the shooter melee template (currently using Unity 5.5) I'm using the break script from this glass shatter addon I found (credit goes to the creator) I set the head as its own separate object and attach the script to it. So far it works but errors iv'e been running into: The enemies head can be destroyed by shooting anywhere (the script works on collision) raising the magnitude works but it either causes no decapitation or it randomly decides. Particle effects/ broken prefab doesn't stay spawned out of the enemies neck hole, it floats where it was created. I can post a test project to download if anyone is interested. Hi! It would be interesting to see a test project!
|
|
|
Post by tharindu on Aug 9, 2018 15:26:20 GMT
There's a vbreakable object after all . You could borrow some of that instead of rewriting a whole new thing.
But to me, decapitation would mean something like remove body parts on shot, meaning switching to new movesets depending on damage level, what limbs are removed etc etc etc.
|
|