|
Post by witcher on Apr 24, 2017 9:28:05 GMT
Any easy way to disable input om a char
|
|
|
Post by uberwiggett on Apr 24, 2017 10:17:16 GMT
there is a lock input feature on the player controller.
|
|
|
Post by Invector on Apr 24, 2017 13:06:08 GMT
access the player input:
// variable vThirdPersonInput tpInput;
private void Start()
{
// get the component using Start, TriggerEnter, or etc... tpInput = GetComponent<vThirdPersonInput>();
}
//call it on your method: tpInput.LockInput(true);
|
|
|
Post by archieandrews on Jul 18, 2018 19:13:09 GMT
How would you access to disable specific inputs of the input manager?
Specifically I want to disable just the Horizontal and Vertical Inputs temporarily as I have a separate joystick script and need to temporarily disable movement of the character whilst the joystick is used for another task inside the game.
TY
|
|
|
Post by archieandrews on Jul 18, 2018 19:59:58 GMT
tpInput = GameObject.Find("vThirdPersonBasic").GetComponent<vThirdPersonInput>();
tpInput.horizontalInput.useInput = false; tpInput.verticallInput.useInput = false;
|
|