What are the set_node and TNT callbacks?

Swablu
Member
 
Posts: 16
Joined: Sun Dec 18, 2016 18:44
GitHub: LHolten
In-game: hytak

What are the set_node and TNT callbacks?

by Swablu » Sat Dec 31, 2016 18:22

I am not sure what callbacks are called using set_node

As i understand it now:
set_node(non-air) on a non-air node triggers the "on_construct", "on_destruct" and "after_destruct" callbacks
set_node(non-air) on a air node triggers the "on_construct" callback
set_node(air) on a non-air node triggers the "on_destruct" and "after_destruct" callbacks

TNT triggers "on_blast", "on_destruct" and "after_destruct" callbacks

Please correct me if i am wrong
 

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: What are the set_node and TNT callbacks?

by red-001 » Sat Dec 31, 2016 19:13

I'm pretty sure that TNT only triggers "on_blast".
 

Swablu
Member
 
Posts: 16
Joined: Sun Dec 18, 2016 18:44
GitHub: LHolten
In-game: hytak

Re: What are the set_node and TNT callbacks?

by Swablu » Mon Jan 02, 2017 08:35

Thank you red-001
I already thought I had something wrong..
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 69 guests

cron