This is turning out to be slightly more difficult than I thought. I need to assign the Reference Alias for this actor from the Actor Script attached to the actor. But I cannot use
myAlias.ForceRefTo(someNpc)
from my actor script. And I have no idea how I would get
MyKeyword.SendStoryEvent(akRef1 = someNPCref)
to work for me...
The problem is this is not a specific Actor, it is an Actor Base and there will be more than one of them at a time and they each will have to have their own seperate packages going, one may be following while another is fleeing etc..
So I will have to use something like this from inside the actor script when they are created.
If Skeleton1 == 0 SkelAlias1.ForceRefTo(self) Skeleton1 = 1EndifIf Skeleton2 == 0 SkelAlias2.ForceRefTo(Self) Skeleton2 = 1Endif
That way I can assign Each individual skeleton to a particular Alias even though there is more than one active at a time. But I'm not sure how to get the ForceRefto or the other option of MyKeyword.SendStoryEvent(akRef1 = someNPCref) to work from inside the Actor Script... =/
Actually it will have to be something more like
if PsiNecroQuest.Skeleton1 == 0 SkelAlias1.ForceRefTo(Self) PsiNecroQuest.Skeleton1 = 1endif
But you get the idea anyways..