View Single Post
Old 01-03-2004, 10:00 AM   #11
HazardX
Rookie
 
HazardX's Avatar
 
Join Date: Dec 2003
Posts: 20
To make the player become a Jedi i made this function:

Code:
void BecomeJedi(int nJediPath)
{
  SetGlobalNumber("DAN_JEDI_PLOT", 7);
  SetGlobalBoolean("DAN_BELAYAT_DONE", TRUE);
  SetGlobalNumber("DAN_PATH_STATE", nJediPath);

    object oPC = GetFirstPC();

    if(nJediPath > 0)
    {
    
        if(nJediPath == JEDI_PATH_GUARDIAN)
        {
            AddMultiClass(CLASS_TYPE_JEDIGUARDIAN,oPC);
        }
        else if (nJediPath == JEDI_PATH_SENTINEL)
        {
            AddMultiClass(CLASS_TYPE_JEDISENTINEL,oPC);
        }
        else if (nJediPath == JEDI_PATH_CONSULAR)
        {
            AddMultiClass(CLASS_TYPE_JEDICONSULAR,oPC);
        }

    }
	 
    ShowLevelUpGUI();
}
[EDIT]
Your way to change the player model works great, but the effect ist lost after a new level load.

Last edited by HazardX; 01-03-2004 at 10:40 AM.
HazardX is offline   you may: quote & reply,