Update PlayermatApi.ttslua

This commit is contained in:
Alexander Lacson 2024-11-05 18:35:30 +08:00
parent 7d27903761
commit 50e472d4ba

View File

@ -406,7 +406,14 @@ do
for guid, pos in pairs(storedPositions) do
local obj = getObjectFromGUID(guid)
obj.setPosition(mat.positionToWorld(pos))
obj.setRotation(obj.getRotation():setAt("y", rotationY))
-- offset the rotation by 180 degrees if the guid matches the player hand zones
local finalRotationY = rotationY
if guid == "0285cc" or guid == "a70eee" or guid == "5fe087" or guid == "be2f17" then
newRotationY = rotationY - 180
end
obj.setRotation(obj.getRotation():setAt("y", finalRotationY))
end
end