Files
The-Only-Cure/media/lua/client/TOC/CommonMethods.lua
ZioPao 3d963a2ad6 fixes
2023-11-12 05:53:26 +01:00

16 lines
408 B
Lua

local CommonMethods = {}
---Returns the side for a certain limb or prosthesis
---@param name string
---@return string "L" or "R"
function CommonMethods.GetSide(name)
if string.find(name, "_L") then return "L" else return "R" end
end
---comment
---@param bodyPart BodyPart
function CommonMethods.GetLimbNameFromBodyPart(bodyPart)
local bodyPartType = bodyPart:getType()
end
return CommonMethods