- Home /
CharacterMotor problem (Js)
Hi guys, how can i access the variables baseHeight and extraHeight in the CharacterMotor script? Infact, if i write this: Player.GetComponent(CharacterMotor).baseHeight=0; It turns out saying that baseHeight isn't a member of CharacterMotor. I've seen those var are under the class CharacterMotorJumping but how can i access them by script then? Thank you!
Answer by Andreapigna · Apr 14, 2014 at 03:23 PM
Forget it, done by myself. Thank you anyway!
This is not a suitable answer for a knowledge base. What happens when the next person who searches finds and reads this? No help.
For future readers :
var character$$anonymous$$otor : Character$$anonymous$$otor;
character$$anonymous$$otor.jumping.baseHeight = 5;
Your answer
Follow this Question
Related Questions
Particular "Jump" Script. 2 Answers
Accessing a variable that has a unique class 2 Answers
2D Character Jumps only 1 time 2 Answers
Moving Character in Midair? JS 0 Answers
Javascript Movement Script. Why am I getting these errors? 2 Answers