heads up on GetRace (strange error)

Post » Fri Jan 25, 2013 12:58 pm

Event OnEffectStart(Actor akTarget, Actor akCaster)

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
User avatar
Janette Segura
 
Posts: 3512
Joined: Wed Aug 22, 2007 12:36 am

Post » Fri Jan 25, 2013 11:50 pm

Foxrace is the default race, so the top one may indeed be breaking or something so it goes to the default race.
User avatar
Katie Samuel
 
Posts: 3384
Joined: Tue Oct 10, 2006 5:20 am


Return to V - Skyrim