-
Couldn't load subscription status.
- Fork 1
Added Item Position to RE7 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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, ",")) .. "]") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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)) | ||
|
|
||
There was a problem hiding this comment.
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.