24 lines
446 B
Plaintext
24 lines
446 B
Plaintext
void main()
|
|
{
|
|
object oPC;
|
|
oPC = GetItemActivator();
|
|
int oAppearance;
|
|
oAppearance = GetAppearanceType (oPC);
|
|
|
|
|
|
if (GetGender(oPC)==GENDER_MALE)
|
|
{
|
|
SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_HUMAN_NPC_MALE_01);
|
|
}
|
|
if (GetGender(oPC)==GENDER_FEMALE)
|
|
SetCreatureAppearanceType(oPC, APPEARANCE_TYPE_HUMAN_NPC_FEMALE_01);
|
|
|
|
|
|
AssignCommand( oPC, DestroyObject( OBJECT_SELF ) );
|
|
|
|
DelayCommand (600.0, SetCreatureAppearanceType (oPC, oAppearance));
|
|
}
|
|
|
|
|
|
|