[Solved] Signlike node facedir

Post Reply
User avatar
MCL
Member
Posts: 654
Joined: Mon Aug 20, 2018 00:44
GitHub: MCLx86
IRC: migdyn
In-game: singleplayer
Contact:

[Solved] Signlike node facedir

by MCL » Post

Hi, how do I write a signlike node to the map using the set_node() function in a specified direction. What I mean is let's say I want to set a node in particular spot to a ladder mounted on the floor not on the ceilling. How do I specify the direction of the node with the singlike drawtype?
Last edited by MCL on Mon Jan 07, 2019 19:55, edited 1 time in total.
2014-02-14 - 2024-02-14 TEN YEARS OF MCL

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: direction of nodes

by Krock » Post

local facedir = minetest.dir_to_wallmounted({x = 0, y = 1, z = 0}) -- or y = -1, dunno
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
MCL
Member
Posts: 654
Joined: Mon Aug 20, 2018 00:44
GitHub: MCLx86
IRC: migdyn
In-game: singleplayer
Contact:

Re: direction of nodes

by MCL » Post

Thank you
2014-02-14 - 2024-02-14 TEN YEARS OF MCL

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests