darth-ackbar Posted January 7, 2012 Share Posted January 7, 2012 Hi, does anyone know how I could make an NPC with the appearance of your player? So if I had the first causican male head, it would use that. And if I had the second black female head, it would use that. This is for TSL by the way. Link to comment Share on other sites More sharing options...
JCarter426 Posted January 7, 2012 Share Posted January 7, 2012 The simplest thing to do would be to create an NPC, however you like, and then change its appearance with the following script: void main() { object oObject = GetObjectByTag("your_NPC", 0); int iAppearance = GetAppearanceType(GetFirstPC()); ChangeObjectAppearance(oObject, iAppearance); } If you need the NPC to have all the player's other stats, this is possible, but it's less direct. I've actually just been messing around with this stuff. Oh, and keep in mind that the game automatically changes NPCs that have the same appearance as the player in certain cases. As long as you fire the script after it's spawned, I think you should be all right. Link to comment Share on other sites More sharing options...
darth-ackbar Posted January 7, 2012 Author Share Posted January 7, 2012 Thanks, that looks like it will work. I cant try until tomorrow because I'm away. Will post results tomorrow Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.