Initial Upload
Initial Upload
This commit is contained in:
19
_module/nss/onclose_fire.nss
Normal file
19
_module/nss/onclose_fire.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
void main()
|
||||
{
|
||||
object oItem = GetFirstItemInInventory(OBJECT_SELF);
|
||||
effect eVis = EffectVisualEffect(VFX_FNF_PWSTUN);
|
||||
object oDoor = GetObjectByTag("waterdoor");
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if(GetTag(oItem)!= "firegem") return;
|
||||
|
||||
DestroyObject(oItem, 0.0);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, OBJECT_SELF);
|
||||
|
||||
SetLocked(oDoor, FALSE);
|
||||
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user