Initial Upload
Initial Upload
This commit is contained in:
27
_module/nss/opendoor.nss
Normal file
27
_module/nss/opendoor.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 1.3
|
||||
|
||||
For download info, please visit:
|
||||
http://www.lilacsoul.revility.com */
|
||||
|
||||
//Put this OnDeath
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastKiller();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
object oTarget;
|
||||
oTarget = GetObjectByTag("EarthExit2");
|
||||
|
||||
AssignCommand(oTarget, ActionOpenDoor(oTarget));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user