generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
24
_module/nss/dw_negray.nss
Normal file
24
_module/nss/dw_negray.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: NW_O2_GARGOYLE.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Turns the placeable into a gargoyle
|
||||
if a player comes near enough.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Brent
|
||||
//:: Created On: January 17, 2002
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
object oCreature = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
|
||||
object oTarget = GetObjectByTag("BlackZombie");
|
||||
if (GetIsObjectValid(oCreature) == TRUE && GetDistanceToObject(oCreature) < 20.0)
|
||||
{
|
||||
ActionCastSpellAtObject (SPELL_NEGATIVE_ENERGY_RAY, oCreature, TRUE, 4, TRUE);
|
||||
ActionCastSpellAtObject (SPELL_NEGATIVE_ENERGY_RAY, oTarget, TRUE, 4, TRUE);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user