Advertisement
expired6978

SetNiTexture

Dec 15th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. class UnkNiClass {
  2. public:
  3.     MEMBER_FN_PREFIX(UnkNiClass);
  4.     DEFINE_MEMBER_FN(SetNiNodeTexture, UInt32, 0x006A4300, NiAVObject * geometry, BGSTextureSet * textureSet);
  5.  
  6.     static UnkNiClass * GetSingleton(void)
  7.     {
  8.         return *((UnkNiClass **)0x01B375F8);
  9.     }
  10. };
  11.  
  12.  
  13.  
  14.  
  15.  
  16. BGSTextureSet * argonianHeadTexture = DYNAMIC_CAST(LookupFormByID(0x69CE0), TESForm, BGSTextureSet);
  17.             BSFixedString headName("FemaleHeadNord");
  18.             NiAVObject * headNode = node->GetObjectByName(&headName.data);
  19.             if(headNode) {
  20.                 CALL_MEMBER_FN(UnkNiClass::GetSingleton(), SetNiNodeTexture)(headNode, argonianHeadTexture);
  21.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement