- Home /
Restric the script and movement in specific area
Hello, i am new at unity and i have a question in a 3D project. I want to run the script only at specific area which is defined by coordinates. I also want to stop movement of the objects at the same way (only in defined area). I tried to put invisible walls at the edges, however it is not working in the way which i wanted. How can i do that?
ps: sorry for my bad english :)
Comment
You said you want to run scripts only at specific areas. Does that mean for example, your player has a script attached to him, and you want to only execute the script when he is not in the area? If not, correct me.