diff --git a/Inspect.lua b/Inspect.lua index 86adfea..c4ebd79 100644 --- a/Inspect.lua +++ b/Inspect.lua @@ -283,12 +283,23 @@ function Inspect._SetupHook() sdk.hook(interact_method, function(args) local compFeedbackFSM = sdk.to_managed_object(args[2]) local parentOfComponent = sdk.to_managed_object(compFeedbackFSM:call("get_GameObject")) + local transform = parentOfComponent:call("get_Transform()") + local pos = transform:call("get_Position") + local posx, posxdec = Inspect._Round(pos.x) + local posy, posydec = Inspect._Round(pos.y) + local posz, poszdec = Inspect._Round(pos.z) + local posvalue = { posx, posy, posz } + Inspect.Log() -- intentional line break Inspect.Log("Item Object", InspectItem.GetName(parentOfComponent)) Inspect.Log("Parent Object", InspectItem.GetParentName(parentOfComponent)) Inspect.Log("Folder Path", InspectItem.GetFolderPath(parentOfComponent)) - Inspect.Log("Player Position", InspectPlayer.GetPositionString()) + -- Inspect.Log("Player Position", InspectPlayer.GetPositionString()) + Inspect.Log("Item Position", "[" .. tostring(table.concat(posvalue, ",")) .. "]") + + + if InspectTypewriter.IsTypewriter(parentOfComponent) then Inspect.Log("Recorder Location ID", InspectTypewriter.GetLocationId(parentOfComponent))