RATDOG/_module/nss/nw_c2_dropin9.nss
Jaysyn904 0f13e6c538 Initial module commit
Initial module commit.
2021-08-29 23:34:48 -04:00

24 lines
681 B
Plaintext

// Drop in - EffectAppear used on us, IF we are a flying creature.
// Uses the SoU "spellsIsFlying" so is updated with new updates, and makes sure
// it doesn't make things spawn in that shouldn't.
// It also is pretty clever and executes the default On Spawn file after
// the appear animation.
#include "X0_I0_SPELLS"
void main()
{
// Are we flying?
if(spellsIsFlying(OBJECT_SELF))
{
// Generate effect
effect eAppear = EffectAppear();
// Apply it to us instantly.
ApplyEffectToObject(DURATION_TYPE_INSTANT, eAppear, OBJECT_SELF);
}
// Execute the default On Spawn file.
ExecuteScript("nw_c2_default9", OBJECT_SELF);
}