Forum rules - please read before posting.

3D Primer - UseBook Interaction Issue - Parent Object to Hand

Hello,
I'm following 3D primer tutorial recreating evil lair. I managed to get to the part (1:34:00) where Tin Pot deactivates the laser. When I did it first time, everything worked as expected. Then I accidentaly changed the binding track into second and things started to get messy: even though I've changed it back into track #0 it didn't clear from track #1 - Laser didn't work as it had TinPot assigned. I replaced that action (Engine: Control Timeline) and Laser started working. Unfortunately now the Instruction Manual has disappeared from hand when activating the panel.
I recreated the whole interaction from start, but it didn't help. I'm not sure how to debug this? I paused the game while performing this interaction and noticed the InstructionManual object is still at Marker: Hidden position - which makes me think the first action in this interaction is not working properly (Character: Hold Object). This is unexpected as the same action works when player is picking up the book from the table.
I included the video and screenshot of the Interaction for reference. Thank you.
https://www.imghippo.com/i/sdWtX1715986693.png
https://streamable.com/eewklg

Comments

  • Welcome to the community, @Luka.

    Indeed, it's an unexpected behaviour - the logic in your ActionList looks correct. What are your AC/Unity versions, and are any related messages appearing in the Console?

    The best way to debug this is to pause the game while the Interation is running, navigate back to this ActionList Editor window, and then click on the InstructionManual GameObject reference inside the Character: Hold object Action. This will highlight the object in the Hierarchy, which you can then select and view in the Scene window. What is its position, parent, and visibility like?

  • Hello, I'm using Unity 6 Silicon (and had no problems with 2023.2 for past year) and latest 1.80.5 AC.
    I've just made a screenshot of Scene view when interaction is running. There are some errors in Console but don't look like related to this.
    https://www.imghippo.com/i/BjPzL1716029871.png

  • I also made a screenshot when player picks up the book from the table. It correctly gets parented to Tin Pot's hand.
    https://www.imghippo.com/i/vhsCG1716030719.png

  • Thanks for the details. Apologies, I should have spotted the issue in the first screenshot.

    The problem is that the Engine: Control Timeline Action has Wait until finish? unchecked, causing the "Clear Parent" command after it to run immediately after the Timeline begins.

  • edited May 2024

    Thank you very much for lightning fast response, on Sunday!
    I've just corrected it as suggested and it works. I've re-watched that part of the video again and of course I missed this bit. Apologies.
    It kind of gave me better understanding of the logic though, so indeed mistakes help in learning :smile:

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.