Is there a way to distinguish between ‘OnFire’ and ‘OnDryFire’?

Diablo

New member
Hello, I’m sorry for using a translator.
I am trying to decrease the durability of a "Rifle" every time a bullet is fired.
I implemented it using the "OnItemStartUse" event handler, but the durability also decreases when dry firing.
I looked for a way to distinguish between "OnDryfire" and "OnFire", but I couldn’t find a good alternative, so I’m asking for help.
 
For this I would create a new Fire Effects module for the Shootable Action. This will only be called when the weapon successfully fires, and you can then decrease the durability.
 
Top