black panther
Member
Hi, I have a question,
so I created a headshot system using the opsive built in function where I put a sphere collider on the player's head, then put it in the hitbox of the character's health function, after that i make the capsule collider (the collider from opsive when setup a player) on another layer and not included it on the impact layer of my weapon so the shootable weapon will not detected the capusle collider, and the headshoot worked. but I got a bug where the first shot to the player would not register as damage..
ps: i made the capsule collider on another layer because i have another bug with the capsule collider, where the headshoot not registered when i shot the player from the back, but its ok from the front (i have debug the character health script, and it detect the sphere collider on the head when i shot from the front but not from the back).
so I created a headshot system using the opsive built in function where I put a sphere collider on the player's head, then put it in the hitbox of the character's health function, after that i make the capsule collider (the collider from opsive when setup a player) on another layer and not included it on the impact layer of my weapon so the shootable weapon will not detected the capusle collider, and the headshoot worked. but I got a bug where the first shot to the player would not register as damage..
ps: i made the capsule collider on another layer because i have another bug with the capsule collider, where the headshoot not registered when i shot the player from the back, but its ok from the front (i have debug the character health script, and it detect the sphere collider on the head when i shot from the front but not from the back).