|
Post by dreadlord on Sept 6, 2016 17:37:09 GMT
Hi there.
I created some shields like in your video, works very fine, but when my character drops them i get this error:
NullReferenceException ...vMeleeWeapon.cs:198
I created several Shields to doublecheck, everytime the same result.
|
|
|
Post by Invector on Sept 7, 2016 12:30:01 GMT
I just tested here dreadlord, that happens because you create the shield as a 'All' type of weapon (attack & defense) and the attack weapon needs a hitbox created in order to work. You just need to open the hierarchy of your shield and click on the hitBox gameObject to create the hitbox and the error will stop. (But if you will use this shield exclusively for blocking and not attack, you can change the MeleeType to Defense)
|
|
|
Post by dreadlord on Sept 7, 2016 16:42:42 GMT
Thanks for the quick response. Problem solved
|
|