forzabo
Member
Having trouble getting my equipped melee weapon to trip the OnObjectImpact event. Read and re-read the docs, and the related posts here -- must be something very basic I'm missing though, because what I'm trying to do is very vanilla.
One item of confusion though -- the Melee weapon inspector has a slot for a callback for the OnObjectImpact event -- I've left that blank, assuming it's meant to be a global callback to be called whenever there is an impact with this weapon.
Otherwise, I've copied the sample script from the docks and added to my simple target object. The melee weapon seems to have a valid collider and appears to impact the target when watching from various perspectives in scene view. I'm stumped.
Attached minimal scene to repro.
One item of confusion though -- the Melee weapon inspector has a slot for a callback for the OnObjectImpact event -- I've left that blank, assuming it's meant to be a global callback to be called whenever there is an impact with this weapon.
Otherwise, I've copied the sample script from the docks and added to my simple target object. The melee weapon seems to have a valid collider and appears to impact the target when watching from various perspectives in scene view. I'm stumped.
Attached minimal scene to repro.