Alangara_PRC8/_module/nss/dh_thorn_wall.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

23 lines
673 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oCaster;
oCaster = OBJECT_SELF;
object oTarget;
oTarget = GetObjectByTag("dh_thorn_wall");
DelayCommand(2.0f,AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_EPIC_RUIN, oTarget, METAMAGIC_ANY, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, FALSE)));
oTarget = GetObjectByTag("dh_thorn_wall");
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(4.0f,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SCREEN_SHAKE), oTarget));
else DelayCommand(4.0f,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SCREEN_SHAKE), GetLocation(oTarget)));
}