Jump to content

Home

Modeling NPCs


pie_man101

Recommended Posts

I was browsing through the forums and found this post which lets you add totally different NPCs to your group

 

 

"These aren't changed Playermodels. They are totally diffrent NPCs.

 

This is how to make it:

 

 

code:--------------------------------------------------------------------------------

object PlaceNPC(string sTag)

{

if(!GetIsObjectValid(GetObjectByTag(sTag)))

{

return CreateObject(OBJECT_TYPE_CREATURE,sTag,GetLocation

(GetObjectByTag("POST_" + sTag)));

}

else

{

return OBJECT_INVALID;

}

}

 

void AddCharToParty(string CharName, int Slot)

{

object oChar;

 

oChar = PlaceNPC(CharName);

AddAvailableNPCByObject(Slot, oChar);

AddPartyMember(Slot, oChar);

}

--------------------------------------------------------------------------------

 

 

- CharName is the Name of the NPC (like n_darthmalak or n_yoda)

- Slot is the Portrait Slot in your Party Selection Screen (0-8)"

 

If anyone can give me an example I would appreciate it because I have no idea how to make it work. And What fle type would I save it under???

 

Thnx in advance.

Link to comment
Share on other sites

pieman there wa sa thread around here about deconstructing the Yuthura mod , should be on the first few pages , or check the sticky about wanting to mod kOTOR , it might be linked in there

 

that thread should help you out a bit

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...