Interactable Problem

1. Character Controller Type (Ultimate Character Controller, First Person Controller, etc).
UFPS

2. Unity Version
2018.2.8f1

3. Bug Description
I have 2 switches in a room.
Both have the interactable id -1 and my character has the interact ability with interactable id -1 as well.
As soon as is use one switch, I can't use the other one anymore.
I only got it working with 2 distinct interactable ids on the switches and 2 interact-abilities on my character.

I was able to reproduce this in the Demo Scene.

4. Steps to Reproduce
Insert an object into your Scene (for example a switch), add "Animated Interactable" and "Interactable (ID -1; Target: object the animated interactable is attatched to)".
Add the Interact Ability to your Character (with standard settings).
The above-mentioned bug should now occur.

Greets
Dennis
 
Thank you for the repro steps. Open Interact.cs and add the following line within CanStartAbility:

Code:
            // The base class may prevent the ability from starting.
            if (!base.CanStartAbility()) {
                m_Interactable = null; // HERE
                return false;
            }
 
I am also having this error. I have made two doors that use the same interact ability with the same parameters as mentioned above. Once one is interacted with, the other doors will not interact.

I went to Interact.cs and saw that the code was already there. is there something Im missing?
 
Everything has been updated. Can you tell me how to reproduce within a fresh project?
 
Top