Trouble Spawning Using EffectSummonCreature()
Zephirius
Member Posts: 419
Just trying to summon a shadow fiend to fight at my side?
Code:
Code:
object oUsed3 = GetItemActivated(); oPC = GetItemActivator(); if (GetTag(oUsed3) == "GEM_NIGHTPLANE") { location lLoc = GetLocation(oPC); effect eEffect = EffectSummonCreature("shfiend002", VFX_IMP_DEATH_WARD, 1.5, TRUE); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eEffect, GetItemActivatedTargetLocation(), 1800.0); }
0
Comments
You need to tell the PC to both create and apply the effect. The simplest way to do that is
If you prefer to keep effect creation and application as two lines, put both statements in a function or script, then use AssignCommand or ExecuteScript respectively.