Advertisement
Guest User

general.lua

a guest
Dec 15th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. general = {}
  2.  
  3. function directionTranslate(direction)
  4.   if direction == nil then
  5.     return 3
  6.   end
  7.  
  8.   if direction == "bottom" then
  9.     return 0
  10.   elseif direction == "top" then
  11.     return 1
  12.   elseif direction == "back" then
  13.     return 2
  14.   elseif direction == "front" then
  15.     return 3
  16.   elseif direction == "right" then
  17.     return 4
  18.   elseif direction == "left" then
  19.     return 5
  20.   else
  21.     return 6
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement