Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Setyaw by red-001
- minetest.register_chatcommand("setyaw", {
- params = "<yaw>",
- description = "Set player yaw",
- func = function(caller,yaw)
- if (yaw ~= '') and tonumber(yaw) then
- local player = minetest.get_player_by_name(caller)
- player:set_look_yaw(math.rad(yaw))
- return true, "Yaw set to "..yaw
- end
- return false, "invaild input"
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement