Interact Ability is not working

maherar

Member
Hi,I created my own script action after interaction and it was working fine.
But now at some interactable objects I am getting following NullReferenceException error. and some of them is still fine and working.
I checked and have same configuration for both objects and couldn't understnad the differrnce/error.



1679584933414.png

When eveything is fine, nothing is change from code.
1679585273730.png
 
My guess is that either the characterLocomotion ability is null or GetAbility<Interact>() returns a null value.
 
That is your script so it's not related to the Interact ability itself. In your script either the characterLocomotion variable is null or the Interact ability isn't on the character that you think that it is on.
 
Top