lfnetwork.com mark read register faq members calendar

Thread: PC Appearance
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 01-07-2012, 03:57 AM   #1
darth-ackbar
Rookie
 
darth-ackbar's Avatar
 
Join Date: Dec 2011
Location: Death Star
Posts: 158
Current Game: The Search For Revan
PC Appearance

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.


Search For Revan Website: www.kotorsearchforrevan.wetpaint.com

Search For Revan LucasForums Thread


<a href=http://www.kotorsearchforrevan.wetpaint.com target=_blank>http://www.kotorsearchforrevan.wetpaint.com</a>
darth-ackbar is offline   you may: quote & reply,
Old 01-07-2012, 04:32 AM   #2
JCarter426
Senior Member
 
JCarter426's Avatar
 
Join Date: Feb 2008
Location: Look to your left.
Posts: 1,635
The simplest thing to do would be to create an NPC, however you like, and then change its appearance with the following script:
Code:
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.



Last edited by JCarter426; 01-07-2012 at 04:38 AM.
JCarter426 is offline   you may: quote & reply,
Old 01-07-2012, 06:07 AM   #3
darth-ackbar
Rookie
 
darth-ackbar's Avatar
 
Join Date: Dec 2011
Location: Death Star
Posts: 158
Current Game: The Search For Revan
Thanks, that looks like it will work. I cant try until tomorrow because I'm away. Will post results tomorrow


Search For Revan Website: www.kotorsearchforrevan.wetpaint.com

Search For Revan LucasForums Thread


<a href=http://www.kotorsearchforrevan.wetpaint.com target=_blank>http://www.kotorsearchforrevan.wetpaint.com</a>
darth-ackbar is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > PC Appearance

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:24 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.