Page 1 of 1

Pressure plate is slow

PostPosted: Tue Jun 14, 2016 19:34
by Tigerlore
Maybe there's something I'm not understanding here about mesecon operation?

I tried the Minecraft standard pressure plate in front of a door and it was so slow as to be unusable. Buttons seem to work fine, although I much prefer pressure plates to buttons.

Visually, it appears that you have to stand on the pressure plate for a second before it sends a signal. Is there a way to get it to react instantly?

Re: Pressure plate is slow

PostPosted: Wed Jun 15, 2016 10:24
by Calinou
Tigerlore wrote:Is there a way to get it to react instantly?


No, because pressure plates poll for player presence every second (doing it more often would use even more resources). There's currently no callback in the Minetest API that says, "do this when player steps on a node".

Re: Pressure plate is slow

PostPosted: Wed Jun 15, 2016 10:42
by burli
Calinou wrote:There's currently no callback in the Minetest API that says, "do this when player steps on a node".

Should be. Many of those. Minetest really needs an event system

Re: Pressure plate is slow

PostPosted: Wed Jun 15, 2016 10:50
by everamzah
nodetimer_interval = 0.1 will make it so the pressure plate is depressed almost immediately once you step onto it. Otherwise, IIRC, it defaults to 1 second.