Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Same Heads

Page: 1 of 1
 brwarner
12-30-2005, 12:06 AM
#1
What kind of script function would I need to make the head of an npc the same as the main pc(you)??
 JediKnight707
12-30-2005, 12:26 AM
#2
Well, from my connected knowledge of scripting (I guarantee you I'm wrong on this one) but you would do something like where you make it: Atton_NPC face = PFGHB04 or whatever your face is. Something of that nature :)
 Darth333
12-30-2005, 12:27 AM
#3
void main ()
{
object oNPC= GetObjectByTag("my_npc_tag");
DuplicateHeadAppearance(oNPC, GetFirstPC());
}


I used it in the Cheesy Halloween pack mod (d3_surprise.nss) if you want to have a look: http://lucasforums.com/showthread.php?t=154622)
 T7nowhere
12-30-2005, 1:12 AM
#4
Hey D333, do ya think thats what the devs used during the Revelation cutscene on the temple summit? I've wondered how they did that.

Also is there a similar script functions to duplicate body appearance or full npc appearance. I know there is a script function to change a npc's appearance, just wonder if its possible to change just the body and leave the head intact.

Edit: Never mind I just checked NWscript it seems to be the only duplicate function.
 Darth333
12-30-2005, 1:24 AM
#5
Yes, this is exactly what they use in the cutscene. The game checks if the pc is male or female to decide which body model to spawn and for the head it uses DuplicateHeadAppearance.
Page: 1 of 1