Can't find docs for OnQuarryToggledSolved
I can't find the "OnQuarryToggled" hook
I found this hook in the update prompt, but I didn't find it in rust-api. If I write this hook into my plugin, it doesn't work. I don't know what went wrong.
Looks like a simple typo.

void OnQuarryEnabled(MiningQuarry quarry)
{
    Puts("OnQuarryEnabled works!");
}​
OnQuarryEnabled is deprecated, current is void OnQuarryToggled(MiningQuarry quarry, BasePlayer player).

Not all new hooks are documented yet.
5c2d88ae4ea06.jpg Wulf
OnQuarryEnabled is deprecated, current is void OnQuarryToggled(MiningQuarry quarry, BasePlayer player).

Not all new hooks are documented yet.

Thanks for u reply!
private void OnQuarryToggled (MiningQuarry quarry, BasePlayer player)

{

var owner = quarry.OwnerID;

if (owner != player.userID) return;

}

But if I write it this way, it doesn't work.

Zugzwang
Looks like a simple typo.

void OnQuarryEnabled(MiningQuarry quarry)
{
    Puts("OnQuarryEnabled works!");
}​

No, not this hook. This hook is deprecated

I'd suggest adding some debug output/logging to check each step in the hook.
5c2d88ae4ea06.jpg Wulf
I'd suggest adding some debug output/logging to check each step in the hook.

Ok, I'll try. Thank you.

Locked automatically