This shit does not workCode:namespace Oxide.Plugins { [Info("TestPlugin", "TestPlugin", "1.0.0")] public class TestPlugin : RustPlugin { void CanAttack(BasePlayer player) { Puts("CanAttack works!"); } } }
CanAttack hook not working
Discussion in 'Rust Development' started by Kovalev PWnz, Apr 13, 2017.
-
Use OnPlayerAttack, see Oxide API for Rust
-
Wulf Community Admin
CanAttack should work fine, but not sure if all attack methods are covered with it. @Mughisi mentioned he'd look into it though.
-
-
Wulf Community Admin
-
OnMeleeThrown works only for throwing
CanAttack does not work at all
I can not solve my task -
The method that the CanAttack hook is in is actually no longer being called by the game so a new location needs to be found.