Pressure plate is slow

Post Reply
User avatar
Tigerlore
Member
Posts: 21
Joined: Thu Jun 09, 2016 22:21

Pressure plate is slow

by Tigerlore » Post

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?
Minetest developers should steal all the good ideas in Minecraft.
Linux is all the good ideas from Unix. It's a proven strategy.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

Re: Pressure plate is slow

by Calinou » Post

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".

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Pressure plate is slow

by burli » Post

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

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: Pressure plate is slow

by everamzah » Post

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests