21 lines
839 B
Plaintext
21 lines
839 B
Plaintext
////////////////////////////////////////////////////////////////////////////////
|
|
// dr_tx_houseout - Transition out of random houses
|
|
// By Deva B. Winblood. October 27th, 2008.
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////[ MAIN ]///////////
|
|
void main()
|
|
{
|
|
object oDoor=OBJECT_SELF;
|
|
object oPC=GetClickingObject();
|
|
string sTag=GetTag(GetArea(oDoor));
|
|
object oWP=GetWaypointByTag("AREA_"+sTag);
|
|
object oExit=GetLocalObject(oWP,"oExit");
|
|
if (!GetIsOpen(oExit)) AssignCommand(oExit,ActionOpenDoor(oExit));
|
|
DelayCommand(0.2,AssignCommand(oPC,ClearAllActions(TRUE)));
|
|
DelayCommand(0.21,AssignCommand(oPC,JumpToObject(oExit)));
|
|
}
|
|
/////////////////////////////////////////////////////////////[ MAIN ]///////////
|