How do i make a script wait some time before dong stuff?

User avatar
Drachenbauer32
Member
 
Posts: 98
Joined: Wed Aug 28, 2019 18:11

How do i make a script wait some time before dong stuff?

by Drachenbauer32 » Thu Oct 24, 2019 19:35

Hello

How do i make a rightclick on a node cause an action, then wait some minutes and then do another action?
Sample: light up a fireplace and it should go off after a while by itself.
 

User avatar
Nathan.S
Member
 
Posts: 921
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: How do i make a script wait some time before dong stuff?

by Nathan.S » Thu Oct 24, 2019 23:52

Nodetimers should do what you want.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

User avatar
rubenwardy
Moderator
 
Posts: 5862
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

twoelk
Member
 
Posts: 1329
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
GitHub: twoelk
IRC: twoelk
In-game: twoelk
 

User avatar
Drachenbauer32
Member
 
Posts: 98
Joined: Wed Aug 28, 2019 18:11
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 1 guest