I'm trying to condition the start of a script attached to the player based on the race. I have the PlayerRef as alias (specific reference) and a match condition with the following parameters:
Target: Subject
Function Name: GetIsRace
Function Info: the correct race selected...
Comp: ==
Value: 1.00
The condition doesn't seem to recognize the race. The script just doesn't fire at all. Removing the condition, the script works fine. I know for sure that I am using the correct race. I have tried changing the target to player, target, reference and linked reference without any success. I have also tried to put the condition directly inside the script with the GetRace function and the code inside an "if". Again, the "if" part of the code doesn't fire.
Oddly, this in the script works (before the "if") and gives me the correct race back:
debug.messagebox("My Current Race is: " + Game.GetPlayer().GetRace())
The code I'm using in the script is:
If ArmorsVanilla.HasForm(akBaseObject) && Game.GetPlayer().GetRace() == Player_Race
Player_Race is a property of type "Race" and points to the specific race.
At first I thought it was a bug, but as it happens with both the condition GetIsRace and also the function GetRace, it has to be an error on my part.
I am using a non vanilla race, but I don't think that should be a problem.
I did a search on the forum and found a single thread where the GetIsRace appeared, but nothing about this problem.
Can anybody please help?