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.

How can I get Malak in my team?

Page: 1 of 1
 StefanRode
02-02-2004, 5:36 PM
#1
How can I get Malak in my team?
I have found this text but I don't understand in which file
I write it.
Can somebody tell me the name of the file?

----------------------------------------------------------------------
And you can add totally diffrent NPCs to your group!

Some Screenshots:
Malak in your Team
Master Vandar with a Rifle

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)
----
--------------------------------------------------------------------------------
please give me the answer!
Page: 1 of 1