// I can't quite figure out how your script work, but you could try something like this:
//set up the name in the editor
public var name:string;
public function deactivate(theName:string)
{
if(name == theName)
{
enabled = false;
}
}
// then you use SendMessage(name) to deactivate the script
↧