Is it possible?
I have a magic effect of archetype Light with my created Light as Assoc. Item 1 (the Light has 3D). The ImpactData has a Hazard with the same light. The Light base object has a script attached to it.
So theoretically I have two chances that the script (better put: events in the script) gets called, namely the light spawned by the magiceffect and the light spawned by the hazard.
The problem is just that neither OnLoad() nor OnInit() get called.
What I'm trying to achieve is:
- Player casts a spell
- script runs on target location (i.e. ground, handled with a created light),
- creates an XMarker
- and forces its ObjectRef into a Quest Alias
Before that I tried using a summon effect with an actor. That worked, but it restricted the created creatures to one at a time, which was highly impractical and took forever.
Anyone got a better idea?