Interactions dont work either

Here is the tutorial I am doing

https://opsive.com/support/document...bilities/detect-object-ability-base/interact/

Here is my player Interaction Ability
1547899389171.png

Here is my Platform
1547899487701.png

Here is the button.
1547899567848.png

I cant figure out why it is not working.
When I look at the animator for the button it stays in idle and the Press Param never gets set.

Before you ask
Yes, the demo works (I copied some settings from it because the tut doesnt say to set some of them
Yes, My platform works without the interaction toggle being set.
No, the button never animates or plays the sound.
 
The best way to debug this is to place a breakpoint within Interact.CanStartAbility and see if it returns success. If it does not return success then something is causing it to return failure and if you step through it you should have a better idea of what it is missing.
 
Thanks again.
The problem is that the Interactable - Targets Array assigns the FIRST script in the inspector on the Assigned GameObject as the one that it puts in the Array. If the script it requires is not first, it breaks. The moving Platform must have The MovingPlatform script first. The Interact button must have the Interactable script first.
 
This is from memory but I think
It didnt say to set the input name to "Action"
The State name "Interact"
Ability Index Param : 9
Interactable ID: 1
Interact Event; Wait for Animation Event checked
Interact Complete Event: Wait for Animation Event checked
 
for searching doc, I use the pdf included with package, then you can search inside the pdf
 
Top