Guest User

Untitled

a guest
Sep 29th, 2016
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Setyaw by red-001
  2. minetest.register_chatcommand("setyaw", {
  3. params = "<yaw>",
  4. description = "Set player yaw",
  5. func = function(caller,yaw)
  6. if (yaw ~= '') and tonumber(yaw) then
  7. local player = minetest.get_player_by_name(caller)
  8. player:set_look_yaw(math.rad(yaw))
  9. return true, "Yaw set to "..yaw
  10. end
  11. return false, "invaild input"
  12. end,
  13. })
  14.  
  15. -- Setpitch by red-001
  16. minetest.register_chatcommand("setpitch", {
  17. params = "<pitch>",
  18. description = "Set player pitch",
  19. func = function(caller,pitch)
  20. if (pitch ~= '') and tonumber(pitch) then
  21. local player = minetest.get_player_by_name(caller)
  22. player:set_look_pitch(math.rad(pitch))
  23. return true, "Pitch set to "..pitch
  24. end
  25. return false, "invaild input"
  26. end,
  27. })
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×