- Home /
Question by
morimoto · Feb 25, 2014 at 03:03 PM ·
triggercharactercharactercontroller
Occasional taking control of Character Controller
For example, a FPS player approaches a chair and triggers a routine which takes control of the player and sits them in the chair.
I wanted to do something like this with PlayMaker and iTween, but iTween cannot take control of gameobjects with a character controller attached.
Comment
Answer by marcfielding · Feb 25, 2014 at 03:12 PM
I've never used iTween but this may work?
I'd imagine you can just disable the character controller in your code, do your iTween stuff then switch it back on?
transform.GetComponent<YOUR-CHARACTER-CONTROLLER>().enabled = false;
Your answer
Follow this Question
Related Questions
Character Controller problem 0 Answers
Scoring System 2 Answers
Problem with character Max Health and Healing items pick up. 1 Answer
Why is my character's y axis randomly changing? 1 Answer
Let Character Controller jump. 1 Answer