31 lines
814 B
Plaintext
31 lines
814 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oDoor;
|
||
|
object oCommoner;
|
||
|
object oCreature;
|
||
|
string sWPTag;
|
||
|
location lLoc;
|
||
|
|
||
|
oCreature = GetObjectByTag("HouseSpawn");
|
||
|
if (GetIsObjectValid(oCreature))
|
||
|
DestroyObject(oCreature);
|
||
|
|
||
|
/*
|
||
|
sWPTag = "House1_WP1";
|
||
|
lLoc = GetLocation(GetObjectByTag(sWPTag));
|
||
|
oCommoner = CreateObject(OBJECT_TYPE_CREATURE,"en4_comhostile1",lLoc);
|
||
|
|
||
|
oDoor = GetObjectByTag("H1Door1");
|
||
|
AssignCommand(oCommoner,ActionCloseDoor(oDoor));
|
||
|
oDoor = GetObjectByTag("H1Door2");
|
||
|
AssignCommand(oCommoner,ActionCloseDoor(oDoor));
|
||
|
oDoor = GetObjectByTag("H1Door3");
|
||
|
AssignCommand(oCommoner,ActionCloseDoor(oDoor));
|
||
|
oDoor = GetObjectByTag("H1Door4");
|
||
|
AssignCommand(oCommoner,ActionCloseDoor(oDoor));
|
||
|
oDoor = GetObjectByTag("H1Door5");
|
||
|
AssignCommand(oCommoner,ActionCloseDoor(oDoor));
|
||
|
DelayCommand(10.0f,DestroyObject(oCommoner));
|
||
|
*/
|
||
|
}
|