Hello,
I am using a custom animator that uses Mecanim in the backend (internally) for my animations. There are a few things that I still need:
1. Can I also use Auto parameters with the custom animator? (I have implemented this directly in my custom animator so far)
2. I am currently trying to create a combo attack (similar to the one in the 3D Action tutorial). However, the normalized time of the Mecanim animation is used.
Is there any way to pass a (for example, wait-) variable in the schematics that has been set before for an animation in my custom animator?
Since a lot of (animation) logic is embedded in the custom animator, I would prefer not to switch completely to Mecanim.
Thank you in advance for your help.
2) Sure - there are multiple ways to do it.
You could e.g. set a float variable on your ability or item to define that time, schematics animating the action can access them via variable origin Selected Data and data key action (Local data origin).
Or have those wait times defined in global variables or object variables of a combatant, etc.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I'm afraid I haven't really understood the variable scopes yet. I created a variable on the gear. Even then I'm not sure whether I have to use local or selected data.
Then I try to access it in the shematic. Here, too, I lack the understanding of the scope. I would need to be able to access the attacking combatant's gear to query a local variable from there. If I just take Wait now and try to access a variable using selected data, I can't select either the combatant or an equipment (maybe via machine object or something).
Variable selection?
This setup doesn't work. I tested it using 'Variable exists'.
Use a Select Equipment node to get equipment currently equipped by a combatant and store it into selected data and you can access the variable the same way (with a different data key you use to store the equipment).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!