Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Inspect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're setting variables that you're not using here, so those should be removed.

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, ",")) .. "]")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you commenting out Player Position? You'd need that for typewriter teleports, if you ever get them working in RE7.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Soo yeah, for the second variable i coul delete them, and for the player pos, for some reason my game just throw an error (even with the old non-modified script), but I could try to check it if you want

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, if you can share the error you're getting, that might give me a lead on what's broken. Would rather make it work than just comment it out broken. 😄





if InspectTypewriter.IsTypewriter(parentOfComponent) then
Inspect.Log("Recorder Location ID", InspectTypewriter.GetLocationId(parentOfComponent))
Expand Down