- Home /
How to check variables from other scripts
Hey so i want to check a float variable from another script to either set a boolean true or false
More details:
1- I have 2 characters that can be controlled by the player
2- He can select either one by pressing T or E
3- I want the camera to follow either one that is selected by checking their speed (if the speed is higher than one then the character that is chosen is moving so the camera will follow the chosen one)
3.5- so if the speed is higher it will set a boolean in the camera follow player script that (if it is true) will make the camera follow
4- but if any one has another solution for the camera follow one by checking the speed please tell me, because i realized some bugs can occur if the selected player pushes the non selected player ,Hey so i want to check a float variable from another script to set a boolean true or false
Your answer
Follow this Question
Related Questions
How do I tilt my camera when I'm doing a certain action 1 Answer
Transferring float from one UI to another? 0 Answers
How to rotate mouse addresses? 0 Answers
See camera point of view ingame 1 Answer