Changed folder name.
Changed folder name.
This commit is contained in:
23
_module/nss/motherdoor12.nss
Normal file
23
_module/nss/motherdoor12.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
object oDoor = GetObjectByTag("motherdoor1"); // assign oDoor the stuck door
|
||||
object oPC = GetPCSpeaker(); // assign oPC to the player who pulls the lever
|
||||
object oDoor2 = GetObjectByTag("motherdoor2");
|
||||
|
||||
|
||||
|
||||
// move the lever
|
||||
PlaySound("as_sw_lever1");
|
||||
|
||||
SetLocked(oDoor,FALSE);
|
||||
AssignCommand (oDoor,ActionOpenDoor(oDoor));
|
||||
|
||||
SetLocked(oDoor2,FALSE);
|
||||
AssignCommand (oDoor2,ActionOpenDoor(oDoor2));
|
||||
|
||||
AdjustAlignment(oPC, ALIGNMENT_EVIL, 100);
|
||||
object oItemToTake;
|
||||
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "HumanSacrifice");
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
}
|
||||
Reference in New Issue
Block a user