Battledale_PRC8/_module/nss/fr_tavern_room_0.nss

24 lines
665 B
Plaintext
Raw Permalink Normal View History

void main()
{
object oObject;
if (GetLocalInt(OBJECT_SELF,"NW_L_AMION") != 1)
{
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
SetLocalInt(OBJECT_SELF,"NW_L_AMION",1);
oObject=GetNearestObject(OBJECT_TYPE_DOOR, OBJECT_SELF, 1);
AssignCommand(oObject,SetLocked(oObject,FALSE));
// AssignCommand(oObject,ActionOpenDoor(oObject));
}
else
{
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
SetLocalInt(OBJECT_SELF,"NW_L_AMION",0);
oObject=GetNearestObject(OBJECT_TYPE_DOOR, OBJECT_SELF, 1);
AssignCommand(oObject,SetLocked(oObject,FALSE));
// AssignCommand(oObject,ActionCloseDoor(oObject));
}
}