Player left click handler

Post Reply
zeuner
Member
Posts: 55
Joined: Fri Dec 01, 2017 20:09
GitHub: zeuner

Player left click handler

by zeuner » Post

I'm trying to call a function when a player left-clicks another player in non-PVP mode (as requested in https://github.com/zeuner/structured_co ... n/issues/1). Is this possible at all? PlayerSAO::punch seems to return without calling a handler when PVP is disabled.

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: Player left click handler

by Byakuren » Post

No, I don't think so. At least without override on_use in the hand item definition, which would break digging.
Every time a mod API is left undocumented, a koala dies.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests