mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-12 08:08:30 +02:00
added description
This commit is contained in:
parent
f6ed297270
commit
b62e4f706d
@ -1,3 +1,6 @@
|
|||||||
|
-- Returns the player's facing direction on the horizontal axes only.
|
||||||
|
-- @param name string The name of the player to return facing direction of.
|
||||||
|
-- @return table Returns axis name and sign multiplyer.
|
||||||
function worldeditadditions.player_axis2d(name)
|
function worldeditadditions.player_axis2d(name)
|
||||||
-- minetest.get_player_by_name("singleplayer"):
|
-- minetest.get_player_by_name("singleplayer"):
|
||||||
local dir = math.floor(minetest.get_player_by_name(name):get_look_horizontal() / math.pi * 2 + 0.5) % 4
|
local dir = math.floor(minetest.get_player_by_name(name):get_look_horizontal() / math.pi * 2 + 0.5) % 4
|
||||||
|
Loading…
Reference in New Issue
Block a user