|
Post by drmarvellous on Feb 6, 2020 16:16:28 GMT
Can't find where or how to fix this. I created my own character and am getting a console error saying -
"The variable trigger of vHitBox has not been assigned"
I can see in the Unity editor - melee manager - Body Members - Hit Boxes - Hit Box 1 etc, but don't understand how and where to set the variable trigger and what to do, in order to get rid of the error.
Any help would be greatly appreciated, thanks.
|
|
|
Post by Invector on Feb 6, 2020 22:40:38 GMT
Check your arms to see if the MeleeObject has a hitbox assigned
|
|
|
Post by drmarvellous on Feb 6, 2020 23:24:50 GMT
Yes, both "Elbow_L and Elbow_R have Melee Object attached, as per your picture.
|
|
|
Post by Invector on Feb 7, 2020 15:05:32 GMT
Check the legs as well, when creating a melee character once you add the MeleeManager component it should be automatically assigned by default, the only reason for this error to appear is if you removed a hitbox or added a melee object into your character manually
|
|
|
Post by drmarvellous on Feb 7, 2020 16:09:41 GMT
Thanks Invector, the vHitBoxes on the feet did not have the Triggers assigned. This must have been what was throwing the error as I'm not getting it now. Many thanks for the support.
|
|
|
Post by shmank on Mar 13, 2020 8:45:32 GMT
Hello there! Got the same problem, but all hitBoxes are attached. But my main problem is that character not receiving damage from the NPC. I'm using Melee Combat Controller and FSM AI
|
|
|
Post by Invector on Mar 13, 2020 13:52:36 GMT
Hello there! Got the same problem, but all hitBoxes are attached. But my main problem is that character not receiving damage from the NPC. I'm using Melee Combat Controller and FSM AI Check the documentation on how to apply damage to targets, also it's probably layers ;)
|
|
|
Post by shmank on Mar 13, 2020 16:44:31 GMT
Hello there! Got the same problem, but all hitBoxes are attached. But my main problem is that character not receiving damage from the NPC. I'm using Melee Combat Controller and FSM AI Check the documentation on how to apply damage to targets, also it's probably layers ;) Layers are correct. It's "Enemy" to enemy, and "Player" to player accordingly. In HitDamage Tag i wrote "Player" to enemy, and "Enemy" to player. I can damage the NPC but it isn't working vice versa. I read documentation and still got some questions (sorry if they are possibly dumb). How to acces to this component "HitDamage Particle", can't find it, and what is "Pendulum and Spikes" can't find any references in the rest of documentation.
|
|
|
Post by shmank on Mar 14, 2020 5:50:29 GMT
Ok, i figured out, what happend. For some reason Root was disabled, and colliders on hands and legs were inactive. :^)
|
|