9 override void CreateConditionComponents()
15 override string GetText()
22 if( !target )
return false;
28 if(
Class.CastTo(building, target.GetObject()) )
30 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
31 if ( doorIndex != -1 )
33 return building.IsDoorLocked(doorIndex);
39 override void OnExecute( ActionData action_data )
42 if (
Class.CastTo(building, action_data.m_Target.GetObject()) )
44 int doorIndex = building.GetDoorIndex(action_data.m_Target.GetComponentIndex());
45 if ( doorIndex != -1 )
47 building.OpenDoor(doorIndex);