Battledale_PRC8/_module/nss/frost_portal_01.nss

14 lines
401 B
Plaintext
Raw Permalink Normal View History

void main()
{
object oPC=GetPCSpeaker();
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "frost_portalkey_01");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_UNSUMMON),oPC);
DelayCommand(0.7,AssignCommand(oPC,JumpToObject(GetWaypointByTag("frost_portal_exit_01"),FALSE)));
}