Hiii, is there a way in which I can add animation events in a certain frame using visual scripting events?
I need to execute a “Shoot” function on the fisrt frame of a shooting animation, but I am unable to do it work.
This is the function, is on the weapon graph:
Have you tried following the Animation event setup described in the manual? Events node | Visual Scripting | 1.8.0
EDIT: You can start the flow with two or more green events so you can retain both the custom event trigger and also have animation event triggering the same logic.
Follow the instructions in the link to set up the Animation event and then connect both to the if node that starts your logic.
The documentation doesn’t explain how to use them
Animation event documentation is here: Unity - Manual: Use Animation Events
And there is no documentation explaining how to use the Animation Event node?
The first link does somewhat.
In your script graph, add an Animation Event node (under Events >Animation).
There are two types of events:
a global animation event, and
a named animation event.
The difference is that the first type listens to all animation events on the object and return the string parameter. The second type’s trigger is the string parameter that is equal to the specified name input.
What is your problem specifically?