First, welcome to the forum.

Second, get my fixed Fsdata.ini that contains all the fixes I know of and replace the one in your final sun folder. It is attached to this posts.
Third, here is the way I got it to work with no bugs at all:
1. Create a local variable called "Alarm", and put the variable to be 0.
2. Create the trigger with the event "34 Enemy in spotlight", the action "52 Set search light mode | Parameter: 3", and action 2 is "Set local variable Alarm" (This makes the spotlight go on the unit). Set the trigger to repeat.
3. Create a trigger with the event "Local is set | Parameter: The variable alarm", the action "Play sound effect | parameter: 161" and action nr. 2: "Clear local variable "alarm"". Set the trigger to repeat.
4. Attach the tower you want this to work on. I think having one tower per this setup is the thing that works best, but you might try 2 close to each other, but many on different spots might screw things up.
Result: When the unit enters the zone of the spotlight, the spotlight will cast over the unit. Then the action that sets the variable will make the other trigger run, and will make the sound of the alarm, and will clear the variable. Whenever the unit is in the spotlight, the variable will activate, and will create more sound.
Happy map-making!

Hope it works for you! Ask if there is something I didn't explain properly or anything. If you don't get it to work, you can private message me the map and I will do it for you.
This post has been edited by CrashKing: Jun 19 2008, 09:51 PM
Perfection can never be achieved; it's merely approachable.