Rune_PRC8/_module/nss/flyto_manarina.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

20 lines
821 B
Plaintext

void main()
{
effect eFly;
location lTarget;
object oPC = GetPCSpeaker();
lTarget = GetLocation(GetWaypointByTag("WP_ManarinaExit"));
SetLocalInt(oPC, "nFlying", 1);
eFly = EffectDisappearAppear(GetLocation(oPC));
effect eAppear = EffectAppear();
// Cutscene effects! Totally unnecessary, but eh.
DelayCommand(2.5, FadeToBlack(oPC, FADE_SPEED_FASTEST));
DelayCommand(15.0, FadeFromBlack(oPC, FADE_SPEED_FASTEST));
DelayCommand(2.5, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_CUTSCENE_INVISIBILITY), oPC, 5.0));
DelayCommand(4.1, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
//DelayCommand(4.2, ApplyEffectToObject(DURATION_TYPE_INSTANT, eAppear, oPC));
// Duration MUST be 3.0 or higher. Higher for busy areas.
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eFly, oPC, 4.0);
}