kaeza wrote:Such a callback would have a high performance cost. It would be handling a mouseover event for every node every player looks at.
rubenwardy wrote:It could be filtered. Ie, only send mouse over a for test:node nodes.
You could make it so the player stares at the block for two seconds before the event is caused.
kaeza wrote:rubenwardy wrote:It could be filtered. Ie, only send mouse over a for test:node nodes.
You could make it so the player stares at the block for two seconds before the event is caused.
And how do you tell the client for what nodes it should send "I'm looking at you, node" packets and for which it shouldn't?
For the 2 second thing, you can get the same effect by defining a node timer/global step and using get_line_of_sight() or some get_look_dir() magic.
Users browsing this forum: No registered users and 11 guests