Me = akTarget
ActorBase RefBase = ME.GetBaseObject() as ActorBase
Race BRace = RefBase.GetRace()
debug.messagebox(BRace)
endevent
The above returns FOXRACE(00109c7c) when used on a frost dragon.
But the one below shows DRAGONRACE!
I have no idea know why but thought it would be a good thing to report this in case others are having issues with getrace().
It is possible (small chance but possible) it is just the dragon I am testing (may not be a vanilla dragon).
If I find out more I will update this post.
Event OnEffectStart(Actor akTarget, Actor akCaster)
Me = akTarget
Race BRace = me.GetRace()
debug.messagebox(BRace)
endevent