Fixed creature hak name, added more quest persistence
Fixed creature hak name, added more quest persistence. Co-Authored-By: Awetizmo <107700980+Awetizmo@users.noreply.github.com>
This commit is contained in:
34
_module/nss/cv_destselfnofx.nss
Normal file
34
_module/nss/cv_destselfnofx.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//:: cv_destselfnofx.nss
|
||||
//:: Copyright (c) 2022 Project RATDOG
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Removes NPCs after rescue or quest completion
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: 20220618
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
//: Declare major variables
|
||||
object oPC = GetPCSpeaker();
|
||||
object oNPC = OBJECT_SELF;
|
||||
|
||||
//:: Set destroyable.
|
||||
SetIsDestroyable(TRUE, FALSE, FALSE);
|
||||
|
||||
//:: Remove plot/immoral/lootable flags JUST in case.
|
||||
SetPlotFlag(oNPC, FALSE);
|
||||
SetImmortal(oNPC, FALSE);
|
||||
SetLootable(oNPC, FALSE);
|
||||
|
||||
//:: Clear Actions & run away
|
||||
ClearAllActions();
|
||||
ActionMoveAwayFromObject(oPC, 1);
|
||||
|
||||
//:: Destroy ourselves after fleeing the scene
|
||||
DelayCommand(6.0f, DestroyObject(oNPC));
|
||||
}
|
||||
|
Reference in New Issue
Block a user