need help with scripts -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 10 years ago

I help with making a script ncs to kill I of my npc I made. can some one help me with it :confused:.




Lordjedi

:(

50 XP

2nd September 2007

0 Uploads

1,981 Posts

0 Threads

#2 10 years ago

Here is that script copy this to your txt. Or dialog editor. void main() { ChangeToStandardFaction(OBJECT_SELF, STANDARD_FACTION_HOSTILE_1); }




Guest

I didn't make it!

0 XP

 
#3 10 years ago

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