Hi guys,
I started to create my own plugin but when I read the doc for the "OnPlayerAttack" hook it say that :
But it's a void method, why ?
- Called from BasePlayer.SharedProjectileAttack and BaseMelee.DoAttackShared
- Useful for modifying an attack before it goes out
- hitInfo.HitEntity should be the entity that this attack would hit
- Returning true cancels the attack
Solved Return type in hooks
Discussion in 'Rust Development' started by JohnyBro, Feb 5, 2016.