FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   SW:KOTOR Modding, Mapping and Editing (http://forums.filefront.com/sw-kotor-modding-mapping-editing-993/)
-   -   need help with scripts (http://forums.filefront.com/sw-kotor-modding-mapping-editing/348638-need-help-scripts.html)

spiderbug2 February 1st, 2008 08:17 AM

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

Lordjedi February 1st, 2008 06:36 PM

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

DarthDingDong February 12th, 2008 02:37 AM

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


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.