Changed folder name.
Changed folder name.
This commit is contained in:
19
_module/nss/destroyclone.nss
Normal file
19
_module/nss/destroyclone.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
//Put this OnEnter
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetExitingObject();
|
||||
object oTarget2 = GetLocalObject(oPC, "Clone");
|
||||
if (!GetIsPC(oPC)) return;
|
||||
if (GetIsPC(oPC)&& GetIsDead(oTarget2)) return;
|
||||
//object oTarget;
|
||||
//oTarget = GetObjectByTag("Clone", 1);
|
||||
object oTarget = GetLocalObject(oPC, "Clone");
|
||||
if (GetIsPC(oPC)&&!GetIsDead(oTarget)){
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), oTarget);
|
||||
AssignCommand(oPC, SpeakString("Outta bounds, clone<c<>~> dead. "));
|
||||
DelayCommand(2.0,AssignCommand(oPC, SpeakString(" ")));
|
||||
|
||||
// DestroyObject(oTarget, 0.0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user