30 lines
899 B
Plaintext
30 lines
899 B
Plaintext
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Rich Dersheimer
|
||
|
//:: Created On: July 5, 2002
|
||
|
//:://////////////////////////////////////////////
|
||
|
#include "nw_i0_tool"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oDoor3 = GetObjectByTag("bathdoor3");
|
||
|
object oDoor2 = GetObjectByTag("bathdoor2");
|
||
|
object oDoor1 = GetObjectByTag("bathdoor1");// assign oDoor the stuck door
|
||
|
object oPC = GetLastUsedBy(); // assign oPC to the player who pulls the lever
|
||
|
|
||
|
//does the party have some oil?
|
||
|
|
||
|
|
||
|
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE); // move the lever
|
||
|
PlaySound("as_sw_lever1");
|
||
|
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||
|
SetLocked(oDoor1,FALSE);
|
||
|
AssignCommand (oDoor1,ActionOpenDoor(oDoor1));
|
||
|
SetLocked(oDoor2,FALSE);
|
||
|
AssignCommand (oDoor2,ActionOpenDoor(oDoor2));
|
||
|
SetLocked(oDoor3,FALSE);
|
||
|
AssignCommand (oDoor3,ActionOpenDoor(oDoor3));
|
||
|
|
||
|
|
||
|
|
||
|
}
|