A way to get the ReferenceAlias of an Actor?

Post » Tue Oct 07, 2014 4:41 pm

I know that getting the Actor of a ReferenceAlias is simply RefAlias.GetReference(), but what about the reverse? Is this possible? The reason I want it is so that I can attach a ReferenceAlias script to anyone who is affected by a magic effect and then be able to access the AliasReference script from the ActiveMagicEffect script.

Any ideas?

User avatar
Jessica Thomson
 
Posts: 3337
Joined: Fri Jul 21, 2006 5:10 am

Post » Tue Oct 07, 2014 2:52 pm

Actor a = aref.GetReference() as actor

User avatar
Scarlet Devil
 
Posts: 3410
Joined: Wed Aug 16, 2006 6:31 pm


Return to V - Skyrim