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

17 lines
736 B
Plaintext

void ArenaSummon(string sTemplate)
{
// do the summon
object oOrb = GetObjectByTag("CS_ORBSUMMON");
object oCreature = CreateObject(OBJECT_TYPE_CREATURE, sTemplate, GetLocation(GetObjectByTag("WP_ARENASUMMON")));
SendMessageToPC(GetPCSpeaker(), "Summoned " + GetName(oCreature) + ".");
//visual effects
location lOrbLocation = GetLocation(oOrb);
effect eOrbEffect = EffectVisualEffect(VFX_FNF_DISPEL);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eOrbEffect, lOrbLocation, 0.5);
location lCreatureLocation = GetLocation(oCreature);
effect eCreatureEffect = EffectVisualEffect(VFX_FNF_SMOKE_PUFF);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eCreatureEffect, lCreatureLocation, 1.0);
}