Hello everyone, I'm sure you're all getting tired of seeing me by now but I cannot for the life of me (despite trying this for about 2 hours) seem to figure out why my "GetRace()" function isn't working properly.
It's a spell effect and I want it to have different effects on different races. I started off by trying to use "if akTarget.GetRace() == NordRace" but that didn't work. I then tried "if akTarget.GetActorBase().GetRace() == Nord Race" but that also didn't work. Then I tried to use a comparison so I first used and Actor and then an ActorBase to compare it to. So "if akTarget.GetRace() == NordReference.GetRace()" and "if akTarget.GetActorBase.GetRace() == NordReference.GetActorBase.GetRace()." None of these worked either. Then finally I created a debug notification to try to see what was going on "Debug.Notification("" + akTarget.GetActorBase().GetRace())" but when I use the effect in game it just returns "[Race" and I have no idea what to make of that. The only thing that seems to work is "if akTarget.GetRace() == akTarget.GetRace()."
Can I not get the race from akTarget directly? Is there some indirect way around this?
Edit: Just to clarify in the code I wrote above "NordRace" is defined by "Race Property NordRace Auto" and "NordReference" was at one point defined by "Actor Property NordReference Auto" and at another point "ActorBase Property NordReference Auto." "NordRace" is the value I used for the "NordRace" property and for the "NordReference" property I used Ulfric.
Edited by OneOnOne1162, 11 May 2020 - 02:19 AM.