diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 4b226094..77d1fe3a 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -2754,3 +2754,9 @@ function removeDuplicatesAndSort(t) return result end + +-- wrapper for 'easier' access to this function +-- Note: There's intentionally no proper UI or button etc. for this, since we don't fully support rotated mats +function moveAndRotatePlayermat(params) + playermatApi.moveAndRotate(params.matColor, params.position, params.rotationY) +end diff --git a/src/playermat/PlayermatApi.ttslua b/src/playermat/PlayermatApi.ttslua index ab616337..2307aa12 100644 --- a/src/playermat/PlayermatApi.ttslua +++ b/src/playermat/PlayermatApi.ttslua @@ -349,7 +349,7 @@ do ---@param matColor string Color of the playermat - White, Orange, Green, Red or All ---@param position table New position for the playermat ---@param rotationY number New y-rotation for the playermat (X and Z will be 0) - PlayermatApi.moveAndRotatePlayermat = function(matColor, position, rotationY) + PlayermatApi.moveAndRotate = function(matColor, position, rotationY) -- get mat and related objects local mat = guidReferenceApi.getObjectByOwnerAndType(matColor, "Playermat") local matObjects = guidReferenceApi.getObjectsByOwner(matColor)