Forum rules - please read before posting.

resetting player animation and object state after loading

I'm using Final IK to handle object interactions and holding objects. There is a problem with saves that it doesn't include that state correctly and for example if I have the player holding a radio, the player holds the radio after loading. The objects are controlled by code, so is there a way to detect loading, so I could run an emptying script.

Comments

  • The OnFinishLoading custom event is called after the save-game loading operation is complete:

    private void OnEnable () { EventManager.OnFinishLoading += OnFinishLoading; }
    private void OnDisable () { EventManager.OnFinishLoading -= OnFinishLoading; }
    
    private void OnFinishLoading ()
    {
        // Reset here
    }
    

    If you want to be able to save the player's FinalIK "holding" state, and not just reset it to the same state each time, you can make use of a custom Remember script to save the relevant data. A tutorial on this topic can be found here.

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.