20 lines
820 B
Plaintext
20 lines
820 B
Plaintext
void main()
|
|
{
|
|
effect eFly;
|
|
location lTarget;
|
|
object oPC = GetPCSpeaker();
|
|
|
|
lTarget = GetLocation(GetWaypointByTag("WP_BandoreExit"));
|
|
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);
|
|
}
|