Changed folder name.
Changed folder name.
This commit is contained in:
35
_module/nss/respawnchest46.nss
Normal file
35
_module/nss/respawnchest46.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
//Put this script OnOpen
|
||||
#include "nw_i0_2q4luskan"
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastOpenedBy();
|
||||
string sRes = GetResRef(OBJECT_SELF);
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
object oTarget;
|
||||
oTarget = OBJECT_SELF;
|
||||
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_SUNSTRIKE), oTarget);
|
||||
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_SUNSTRIKE), GetLocation(oTarget));
|
||||
|
||||
DestroyObject(oTarget, 3.0);
|
||||
|
||||
location lTarget;
|
||||
oTarget = OBJECT_SELF;
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
DelayCommand(3000.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, sRes, lTarget));
|
||||
|
||||
}
|
Reference in New Issue
Block a user