Hey All,
I have 2 scripts on an object of mine. One of the scripts is the script that allows for user control, the other is an AI script. Pretty much what i want to have happen is if the player selects that object in the menu, it will “uncheck” the AI script (assuming originally both the user control and AI control are checked) and the player control script will still be checked.
I have tried this:
var AI : ObjectAI; //(ObjectAI is the name of the AI script)
function Start(){
AI.enabled = false;
}
but that doesnt seem to work… both seem to still be checked off. Any ideas?