The problem with using OnTrigger instead of OnTriggerActor is that OnTrigger runs when any havoked object hits the trigger zone. I need this to run only when an actor triggers it, and I need the script to be as generic as possible so I can place multiple instances of this setup in game without needing to script each one individually.
A full breakdown of what I'm trying to accomplish is:
1. Actor enters trigger zone (creature, NPC, or Player)
2.Timer starts counting down.
3. Timer reaches 0, caster fires at the triggering actor.
4. Repeat 2-3 for as long as the actor is within the trigger zone.
5. Actor exits trigger zone, caster stops shooting.
6. Actor re-enters trigger zone (or a new actor does).
7. Repeat 2-5.
What's actually happening:
1. Actor enters trigger zone (creature, NPC, or Player)
2.Timer starts counting down.
3. Timer reaches 0, caster fires at the triggering actor.
4. Timer starts counting down again.
5. Timer reaches 0, caster fires north. (maybe it has a problem with Skyrim?)
6. Repeat 4-5 for as long as the actor is within the trigger zone.
7. Actor exits trigger zone, caster stops shooting.
8. Actor re-enters trigger zone (or a new actor does).
9. Repeat 2-7.
I'm wondering if the Triggered short might be the part of the problem. Should I eliminate that and just go with the timer?
This may be unrelated, but the "casting reference fires north" issue is one I've run into before when trying to script an activator to fire at multiple persistent references in sequence. If the target references are static objects (such as XMarkers), the shooting activator will only fire north, although it will fire at the appropriate intervals. If the target references are activators (enabled or disabled), the caster will fire in the correct directions at the correct intervals.