February 12th, 2008
|
#3 |
| I'm too cool to Post
Join Date: November 12th, 2007 Status: Available Rep Power: 0 | Re: need help with scripts That will make the NPC attack you. If you wanted it to just die on the spot use this:
void main()
{
object oPC = GetPCSpeaker();
object oTarget;
oTarget = GetObjectByTag("TAG_HERE");
effect eEffect;
eEffect = EffectDeath();
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
}
Just replace TAG_HERE with the NPC's tag.
-DDD |
| |
| |