generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
19
_module/nss/flyto_bandore.nss
Normal file
19
_module/nss/flyto_bandore.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user