generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
22
_module/nss/clonepc.nss
Normal file
22
_module/nss/clonepc.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "clone_lib"
|
||||
#include "nw_i0_generic"
|
||||
#include "spawner"
|
||||
#include "prc_inc_util"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oTarget = GetWaypointByTag("monster_wp");
|
||||
object oMonster;
|
||||
location lLocation = GetLocation(oTarget);
|
||||
PCEffect(0.0,VFX_FNF_DISPEL_DISJUNCTION, oPC);
|
||||
PRCForceRest(oPC);
|
||||
DoEffect(0.0, VFX_FNF_PWKILL, "monster_wp");
|
||||
CreatePCClone(oPC,lLocation, CustomSet_X2_DefaultSet, TRUE);
|
||||
oMonster = GetNearestCreature(CREATURE_TYPE_IS_ALIVE, TRUE, oPC);
|
||||
ChangeToStandardFaction(oMonster, STANDARD_FACTION_HOSTILE);
|
||||
AdjustReputation(oPC, oMonster, -100);
|
||||
SetIsTemporaryEnemy(oPC, oMonster);
|
||||
AssignCommand(oMonster, DetermineCombatRound(oPC));
|
||||
AssignCommand(oMonster, ActionAttack(oPC));
|
||||
}
|
||||
Reference in New Issue
Block a user