|
Post by kevios on Feb 21, 2018 9:42:12 GMT
Hello, i have a problem... i try to switch the camera state from "Default" to "Summon" ... how can i do this? i have a script that is attached to an object and if this object is active the CameraState have switch to "Summon"... And how can i make this that when ObjectA is active the Player cant rotate Camere X+Y can anybody quick help me here? this would be perfect
|
|
|
Post by tharindu on Feb 21, 2018 10:43:55 GMT
there's a variable named current state in the camera's instance. changing that should help. you own my bullet time effect right ? I switch camera states in there.
|
|
|
Post by kevios on Feb 21, 2018 10:50:57 GMT
ah ok i will look there and you have a idea how i can deactivate the camera rotate when objectA is active?
|
|
|
Post by tharindu on Feb 21, 2018 10:53:07 GMT
I think there was a field in the name lockCameraInput in third person input class. something like below.
var input = GetComponent<vThirdPersonInput>(); input.lockCameraInput = true;
|
|
|
Post by kevios on Feb 21, 2018 12:13:54 GMT
i got it thanks alot
|
|