[Solved] Signlike node facedir

User avatar
migdyn
Member
 
Posts: 254
Joined: Mon Aug 20, 2018 00:44
Location: A non-existing flat forest on flat earth
GitHub: migdyn
In-game: migdyn

[Solved] Signlike node facedir

by migdyn » Mon Jan 07, 2019 18:09

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 migdyn on Mon Jan 07, 2019 19:55, edited 1 time in total.
 

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

Re: direction of nodes

by Krock » Mon Jan 07, 2019 19:02

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

User avatar
migdyn
Member
 
Posts: 254
Joined: Mon Aug 20, 2018 00:44
Location: A non-existing flat forest on flat earth
GitHub: migdyn
In-game: migdyn
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 2 guests