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

Post Reply
User avatar
Drachenbauer32
Member
Posts: 105
Joined: Wed Aug 28, 2019 18:11

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

by Drachenbauer32 » Post

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: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

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

by Nathan.S » Post

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: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

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

by twoelk » Post

The Real Torch mod may have code worth studying for sollutions

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

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

by Drachenbauer32 » Post

Thanks!
There i found the solution, i needed.

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests