External Scripts Messing With Local Scripts

Hello.
I’ve been working on a game project for a few months now and I have been discouraged from the project because of this problem.

I have and externa; script for both the main character and enemy.
What is strange to me is how the effects of the 2’s actions are diffrent if the presence of the AI is thier or not.

The main glitch I have so far is that when both the AI and Player charcter are on stage, and both players shoot, the AI stops shooting, heads toward the player, and the player’s bullet timer is attached to the player, and eventually deletes the char.

This doesnt happen when the AI is not shooting.

What could be my problem.

This beta was created with nathan99’s open-source sidescroller engine and has been heavily recoded, leaving basically nothing left. The only thing I didnt re-write is the shooting, and that’s probably why its messing up for me.

Here are all my source files:

Main FLA: http://lightning-1.com/Personal/Kingofnukes/shoot%20AI.fla

Player external script: http://lightning-1.com/Personal/Kingofnukes/Char1.as

AI external script: http://lightning-1.com/Personal/Kingofnukes/redifined%20AI.as

I would greatly apreciate any and all help with this headache.

Thank you for your time,
Kingofnukes