ActionCastSpell
Posted: Sun Dec 28, 2008 5:49 pm
Hi folks;
Trying to set up a trigger that when entered, casts a spell at the PC entering the object. Problem is, I cant get the darned spell to cast at the entering PC.
Code as follows
What am I doing wrong? I pulled examples straight from the NWN lexicon, cant get it to work.
Trying to set up a trigger that when entered, casts a spell at the PC entering the object. Problem is, I cant get the darned spell to cast at the entering PC.
Code as follows
Code: Select all
void main()
{
object oTarget = GetEnteringObject();
FloatingTextStringOnCreature("target is " + GetName(oTarget), oTarget);
ActionCastSpellAtObject(SPELL_WEB, oTarget, METAMAGIC_ANY, TRUE);
}