low poly game kit pro
I dunno if anyone has used this but it's great. I got a character loaded in and he's moving and jumping and having a good time. Anyway I went to add a cape to my character and parented it to the main character but I can't get the cape to recognize the triggers from the character controller script on the character. for instance, I want to cape to start flapping in the wind heavily when he is running and lightly when he is idle. What would be the best way to do this? I already have the animations for the cape I just need to find the triggers, My state machine looks something like this
well it took me a month of messing with unity to figure out that I needed a controller on my cape to actually control it. go figure. pretty easy to do actually(should have read the manual first). just needed to use these lines of code
m_Vertical$$anonymous$$ovement = Input.GetAxis("Vertical");
m_Horizontal$$anonymous$$ovement = Input.GetAxis("Horizontal");
m_Animator.SetFloat("Vertical", m_Vertical$$anonymous$$ovement);
m_Animator.SetFloat("Horizontal", m_Horizontal$$anonymous$$ovement);
Of course once it was setup the animations didn't work over the network. So I used my trusty islocalplayer script on the cape as well as the character to turn on my controllers. now it's all working! hopefully this helps anyone in the same boat.
Your answer
![](https://koobas.hobune.stream/wayback/20220612223227im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why StateMachineBehaviour not calling OnStateExit when doing animator.Crossfade through code? 0 Answers
Animator - Different animations according to previous state 0 Answers
How to make my custom 3rd person character jump? 0 Answers
Animator nested within animator doesn't work unless toggled off/on 0 Answers
How do you make sure that when you land on an object, an animation starts? 0 Answers