- Home /
Question by
KRUZAA · Mar 02, 2014 at 09:37 AM ·
javascriptmovement scriptcharacter controlling
How to to Disable a Script with Character Enters Zone? (JS)
Hello im trying to figure out how to disable my characters movement script when he enters the collider. So if he is dragged into the zone he can no longer be controlled.
Comment
Please use the search function next time, this type of question is very common!
Also, you haven't provided enough information about your project. We don't know what you've already tried or how you're trying to do it currently. Normally, you would just have a trigger on the object you enter, and OnTriggerEnter(Collider colObj), if colObj.tag == "Player", then we disable the on that colObj which is the player.
Your answer
Follow this Question
Related Questions
Rolling ball 2 Answers
Trying to move an object between two points 2 Answers
Script needs fixing ?! 1 Answer
Setting Scroll View Width GUILayout 1 Answer