- Home /
Other
Check y transform. Or limit(stop).
Hello. I want to block a player going up too much i want to make if y is 14 then don't allow him go higher or reset to y 13. I will need to do this with sides too if you can help me i will want to block player going left or right too much if x or z is 30 then dont allow him to go further (stop camera going in that direction further(increasing number more than 30 in x or z)) or reset to x 29 or z to 29. I hope you understand and can help me. Hey. moderator tanoshimi THE ANSWER WAS WRONG! float y; if(y>13) y = 13; ; it does NOTHING it goes more that 13 y and nothing happens if you can see you cant help me allow people to solve it! thats your job bro.
Sorry, but $$anonymous$$ching you basic program$$anonymous$$g is most definitely not my job, bro.
http://unity3d.com/learn/tutorials/modules/beginner/scripting