Nymra Posted April 1, 2021 Posted April 1, 2021 I want to check if actors have the same "race" (for a defeat mod, what else) this is the line I found to work with (from Sexlab Adventures) (Aggressors[0].GetActorBase().GetRace() == Aggressors[1].GetActorBase().GetRace()) but this function I think will also check for human races like "nord" or "Breton" and return "false" in that case, no? I basically just want to check if: - Actor 1 and 2 are both human (be nord, argonian, etc) or both the same type of creature (for example both falmers) hmm
Monoman1 Posted April 2, 2021 Posted April 2, 2021 You could try just checking the Playable race flag..... Not sure are werewolves playable? And just to note. Follower mods often create an entirely new race and they are generally not playable. So if you were to check them they would not pass as human. Problems, problems. You could also check their voice against a voice list. But again. Custom voiced Npcs would not be considered human..... Either solution would probably cover 95% of cases at least I guess... Edit: Of course werewolves aren't playable otherwise they'd be selectable in race menu. Excuse momentary stupidity.
AndrewLRG Posted April 2, 2021 Posted April 2, 2021 4 minutes ago, Monoman1 said: You could try just checking the Playable race flag..... Not sure are werewolves playable? Vampire races are also considered unplayable.
Ruffled Pigeon Posted April 2, 2021 Posted April 2, 2021 MyActor.HasKeyword(MyKeyword) HasKeyword - Form - Creation Kit Create a Keyword Property and fill it with the "ActorTypeNPC" Keyword. If an Actor has that Keyword, he is a humanoid. If he doesn't, it's a creature and you can do individual race checks. (At least in vanilla I'm pretty sure)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.