Swe-DivX Posted August 23, 2020 Posted August 23, 2020 Can you get the Skeleton info from a NPC with a script? ANAM - Male skeletal Model or ANAM - Female skeletal Model I want to get the ex "Actors\DLC01\ChaurusFlyer\Character Assets\MNC_skeleton.nif" info
Guest Posted August 23, 2020 Posted August 23, 2020 No. But if you really need it, it's easy to do with a SKSE plugin. BSFixedString GetRaceModelName(TESRace* race, SInt32 gender) { if (race == nullptr || (gender != 0 && gender != 1)) return BSFixedString(); return BSFixedString(race->models[gender].GetModelName()); } Register this function for Papyrus and call it like this: ActorBase myActorBase = myActor.GetLeveledActorBase() string modelName = MySKSEPlugin.GetRaceModelName(myActorBase.GetRace(), myActorBase.GetSex())
Swe-DivX Posted August 24, 2020 Author Posted August 24, 2020 11 hours ago, Hawk9969 said: No. But if you really need it, it's easy to do with a SKSE plugin. BSFixedString GetRaceModelName(TESRace* race, SInt32 gender) { if (race == nullptr || (gender != 0 && gender != 1)) return BSFixedString(); return BSFixedString(race->models[gender].GetModelName()); } Register this function for Papyrus and call it like this: ActorBase myActorBase = myActor.GetLeveledActorBase() string modelName = MySKSEPlugin.GetRaceModelName(myActorBase.GetRace(), myActorBase.GetSex()) Thanks! I will try it ?
Guest Posted August 24, 2020 Posted August 24, 2020 5 hours ago, Swe-DivX said: Thanks! I will try it ? I actually forgot the first parameter for the C++ function. The correct parameters should be: BSFixedString GetRaceModelName(StaticFunctionTag*, TESRace* race, SInt32 gender)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.